route add default gw 192.168.239.2
route remove default gw 192.168.1.1
nmcli con reload
nmcli dev status
/etc/init.d/network start
/etc/init.d/network stop
netstat -rn
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 ens33
192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ens33
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
192.168.239.0 0.0.0.0 255.255.255.0 U 0 0
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.239.2 0.0.0.0 UG 0 0 0 ens33
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 ens33
192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ens33
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
192.168.239.0 0.0.0.0 255.255.255.0 U 0 0
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.239.2 0.0.0.0 UG 0 0 0 ens33
192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ens33
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
192.168.239.0 0.0.0.0 255.255.255.0 U 0 0
'Infra & DevOps > Network' 카테고리의 다른 글
TCP/IP (3) | 2021.10.06 |
---|---|
[퍼온 글] DNS가 특정 포트를 가리킬 수 있는가? (0) | 2020.06.09 |
Private IP Range (0) | 2020.06.09 |
[퍼온 글] GARP의 정의와 활용 사례 (0) | 2020.06.03 |