Display default route
Following three-command display the current routing table:
# route
Destination Gateway Genmask Flags Metric Ref Use Iface60.49.199.72 * 255.255.255.248 U 0 0 0 eth0172.16.163.0 172.16.160.1 255.255.255.0 UG 0 0 0 eth1172.16.162.0 172.16.160.1 255.255.255.0 UG 0 0 0 eth1172.16.161.0 172.16.160.1 255.255.255.0 UG 0 0 0 eth1172.16.160.0 * 255.255.255.0 U 0 0 0 eth1172.16.167.0 172.16.160.1 255.255.255.0 UG 0 0 0 eth1172.16.165.0 172.16.160.1 255.255.255.0 UG 0 0 0 eth1172.16.164.0 172.16.160.1 255.255.255.0 UG 0 0 0 eth1172.16.170.0 172.16.160.1 255.255.255.0 UG 0 0 0 eth1172.16.169.0 172.16.160.1 255.255.255.0 UG 0 0 0 eth1172.16.168.0 172.16.160.1 255.255.255.0 UG 0 0 0 eth1link-local * 255.255.0.0 U 0 0 0 eth1default home.gateway 0.0.0.0 UG 0 0 0 eth01. Display or view routing table.2. Add or change default route.3. Add static route.4. Add permanent (persistent) static routing.route add default gw 10.10.0.1 eth0
No comments:
Post a Comment