3/11/2020

ip vervang ifconfig route arp enz

Filed under: — cybrarian @ 1:54 am

Wie bij netwerkproblemen automatisch ifconfig tikt, of route, moet zich aanpassen, want de aliassen beginnen te verdwijnen (geen backward compatibility meer).

ifconfig?

ip address show

kort:
ip a

route -n ?

ip route show

kort:
ip r

arp?
(address resolution protocol, voor hardware adres)
ip neigh

192.168.1.6 dev eth0 lladdr 00:26:b9:bc:4e:19 STALE
192.168.1.3 dev eth0 FAILED
192.168.1.1 dev eth0 lladdr 68:15:90:10:a3:9d REACHABLE

ip adres instellen

ip addr add <address>/<netmask> dev <interface> 

bv:
ip addr add 10.0.0.1/24 dev eth1

Default Gateway instellen

ip route add default via <gateway> dev <interface>

vb:
ip route add default via 192.168.1.2 dev eth0

Static route
Vroeger ‘route add -net <network>/<netmask> gw <gateway> [dev <interface>]

ip route add <network>/<netmask> via <gateway> dev <interface>

ip route add 172.16.32.0/24 via 192.168.1.1 dev eth0

ps:
netstat -l ?
ss -l
(socket statistics)

Netid  State      Recv-Q Send-Q Local Address:Port                 Peer Address:Port  
....
u_str  LISTEN     0      128    /run/cups/cups.sock 23651     
....

Reacties zijn gesloten.

Powered by WordPress