- 积分
- 16841
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
root@controller:~# ip route add 192.168.2.0/24 via 0.0.0.0 dev ens33 ; b B0 d$ W& h/ t
root@controller:~# route -n
' L' a7 z# w: L4 {$ r2 D- ?Kernel IP routing table
' o! i5 h/ j' i# f* o0 MDestination Gateway Genmask Flags Metric Ref Use Iface
9 V5 v: w6 H. a+ a4 ^0.0.0.0 192.168.13.2 0.0.0.0 UG 0 0 0 ens361 p/ ]6 ?1 T; U P% g+ z
162.96.90.0 0.0.0.0 255.255.255.0 U 0 0 0 ens34
: _. {4 q" P5 f9 m( Z( @' q' B171.10.91.0 0.0.0.0 255.255.255.0 U 0 0 0 ens35
' e. b- V) z0 c7 @8 J8 }192.168.0.0 0.0.0.0 255.255.252.0 U 0 0 0 ens33
9 t& \5 y: x0 Y- A6 x! x192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33" B9 O& G `" a/ H7 b& ?
192.168.13.0 0.0.0.0 255.255.255.0 U 0 0 0 ens36
3 _* [& P2 O5 |
, s* v' G6 m/ l# M0 a% O- O" m' ^! z& I( f' d
root@controller:~# ip route add 0.0.0.0 via 192.168.2.254 dev ens33& [$ S1 G2 g( Q* N; {
/ v* q6 T$ k' f7 {+ I; Rroot@controller:~# route -n. P. m, F% ~! D1 B0 `
Kernel IP routing table
9 E$ U- H$ U0 r8 [ Y, [7 }0 j5 J2 _Destination Gateway Genmask Flags Metric Ref Use Iface
1 H6 x$ p7 X. t0.0.0.0 192.168.2.254 255.255.255.255 UGH 0 0 0 ens33
W- h5 J( W' z5 F0.0.0.0 192.168.13.2 0.0.0.0 UG 0 0 0 ens362 N( l2 F X9 g5 i0 h
162.96.90.0 0.0.0.0 255.255.255.0 U 0 0 0 ens34* u. M, ~6 m4 B- s# ]7 q( L3 ]0 r
171.10.91.0 0.0.0.0 255.255.255.0 U 0 0 0 ens35% Q- |+ \6 `+ O- B8 w+ B: V! P4 _
192.168.0.0 0.0.0.0 255.255.252.0 U 0 0 0 ens33& e, ?9 n% h! Z2 T1 m$ _4 x
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33
% \5 @9 M+ ^) _0 U, b192.168.13.0 0.0.0.0 255.255.255.0 U 0 0 0 ens36
* u J, `3 r- _7 ]7 z6 ]+ D7 S4 @/ {" [! e& ]
|
|