|
|
root@controller:~# ip route add 192.168.2.0/24 via 0.0.0.0 dev ens33 ; N! |' ^) I; F- `. n$ ~
root@controller:~# route -n, K* s# H: O" b. p
Kernel IP routing table
! w8 H. m3 ]4 p1 L: j7 e; I! q6 GDestination Gateway Genmask Flags Metric Ref Use Iface
9 ^+ n2 N3 J! h' X0.0.0.0 192.168.13.2 0.0.0.0 UG 0 0 0 ens36) r; g2 ^+ S' j0 `
162.96.90.0 0.0.0.0 255.255.255.0 U 0 0 0 ens34
7 l. z' N$ U; Z: ^4 L171.10.91.0 0.0.0.0 255.255.255.0 U 0 0 0 ens35, g4 ^: w) W1 r- N
192.168.0.0 0.0.0.0 255.255.252.0 U 0 0 0 ens33
' \2 u }( [% Q2 f# B192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33
8 g0 h" L" \- [+ r) y192.168.13.0 0.0.0.0 255.255.255.0 U 0 0 0 ens36
: C+ [' i" r$ J1 U: F$ W4 ~0 w) _8 @
/ J( S( o3 o. `& n U& u! N3 y4 v6 h* \& I8 H
root@controller:~# ip route add 0.0.0.0 via 192.168.2.254 dev ens33
2 a! Y. ^- ]9 s6 j0 R' s' @6 A! [, L @ d
root@controller:~# route -n
/ I& {3 R# J2 e" iKernel IP routing table
# z) o' |1 g! c9 r/ i& zDestination Gateway Genmask Flags Metric Ref Use Iface" N ?6 O1 ]* a% V- O8 O4 y
0.0.0.0 192.168.2.254 255.255.255.255 UGH 0 0 0 ens33
v& z" k. I3 ?: B0.0.0.0 192.168.13.2 0.0.0.0 UG 0 0 0 ens36
: E$ r4 }% I0 l- H2 v4 F162.96.90.0 0.0.0.0 255.255.255.0 U 0 0 0 ens34! q- }+ w; n' b
171.10.91.0 0.0.0.0 255.255.255.0 U 0 0 0 ens35% a* T! X, x) [2 ?, z
192.168.0.0 0.0.0.0 255.255.252.0 U 0 0 0 ens33+ F- g! ^1 H8 A
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33* Q2 ^9 \' L' G" O2 c
192.168.13.0 0.0.0.0 255.255.255.0 U 0 0 0 ens36/ ?( T! H5 d w. m5 Y" Q; w
+ m& |) z3 p& A/ {) |" S; Q3 s, @
|
|