rss logo

Iproute2 commands

Iproute2 is the new way to controll and monitor networking in the Linux kernel.

Commands

Addr

root@host:~# ip addr add 192.168.2.41/24 dev eth0 root@host:~# ip addr add 192.168.2.42/24 dev eth0 root@host:~# ip route del default root@host:~# ip route add default via 192.168.2.1 root@host:~# ip route add 192.168.1.210 dev ppp0

Link

root@host:~# ip link set ens33 up root@host:~# ip link set ens33 down

VLAN

root@host:~# ip link add link eth0 name IPv6 type vlan id 10 root@host:~# ip link set IPv6 up root@host:~# ip link set IPv6 down root@host:~# ip link delete IPv6
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Contact :

contact mail address