route del default gw

1 개요[ | ]

route del default gw
Console
Copy
ubuntu@ubuntu16:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.122.2   0.0.0.0         UG    0      0        0 virbr0
192.168.56.0    0.0.0.0         255.255.255.0   U     0      0        0 enp0s3
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
Console
Copy
ubuntu@ubuntu16:~$ sudo route del default gw 192.168.122.2
ubuntu@ubuntu16:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.56.0    0.0.0.0         255.255.255.0   U     0      0        0 enp0s3
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0

2 같이 보기[ | ]