-
Notifications
You must be signed in to change notification settings - Fork 1
Commandes Linux
Paspirine edited this page Feb 15, 2021
·
7 revisions
$ ifconfig -a
- Pour déterminer si un câble est physiquement branché à l'interface, utiliser la commande ethtool .
$ ip addr show
- Pour déterminer si un câble est physiquement branché à l'interface, le flag LOWER_UP doit être présent.
$ ifconfig eth0 inet 192.168.1.1/24 up
$ ip link set up dev eth0
$ ip addr add 192.168.1.1/24 dev eth0
$ netstat -nr
$ netstat -6nr
$ ip route
$ ip -6 route
$ route add -net <ip_network_CIDR> gw <ip_gateway>
$ route -A inet6 add <ipv6_network_CIDR> gw <ipv6_gateway>
$ ip route add <ip_network_CIDR> via <ip_gateway>
$ ip -6 route add <ipv6_network_CIDR> via <ipv6_gateway>