So here are the basics of the new ip command.
Assign a IP Address to Specific Interface:
sudo ip addr add 192.168.50.5 dev eth1Check an IP Address:
sudo ip addr showRemove an IP Address:
sudo ip addr del 192.168.50.5/24 dev eth1Enable Network Interface:
sudo ip link set eth1 upDisable Network Interface:
sudo ip link set eth1 downCheck Route Table:
sudo ip route showAdd Static Route:
sudo ip route add 10.10.20.0/24 via 192.168.50.100 dev eth0Remove Static Route:
sudo ip route del 10.10.20.0/24Add Default Gateway:
sudo ip route add default via 192.168.50.100
No comments:
Post a Comment