易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 4329|回复: 2
收起左侧

neutron pat ip netns 测试ping网络测试

[复制链接]
发表于 2019-11-7 15:00:07 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
neutron 的pat口上使用ip netns
! f# M; Z  U8 X2 ~9 L" i# ]5 S. ssudo ip netns exec pat ping 114.114.114.114
0 w2 u' B8 R- i/ O8 [! oPING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.& |. J7 y5 S( b/ v% l1 i: D$ d5 y* }
64 bytes from 114.114.114.114: icmp_seq=1 ttl=74 time=33.3 ms, V8 R8 N4 c0 \! l  i4 N
 楼主| 发表于 2019-11-8 15:24:23 | 显示全部楼层
ip netns exec pat bash( t+ M' H( G. w- ^! `$ E. x
[root@localhost0 deployer]# ifconfig -a
" J7 t5 d5 w; o+ ?7 o. G2 ^bond1.107: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1600
: ]8 J7 n, L5 K9 l9 |1 r        inet 10.64.38.40  netmask 255.255.255.0  broadcast 0.0.0.0
) i3 b' b. M9 [' X8 S) R0 m        inet6 fe80::4adf:37ff:fe06:2019  prefixlen 64  scopeid 0x20<link>
& M2 _# @! S3 H' X- l" ]        ether 48:df:37:06:20:19  txqueuelen 1000  (Ethernet)1 S1 Y+ t; Y& u  P; W) h) p; N# g6 a
        RX packets 299880696  bytes 27086431703 (25.2 GiB)
3 W/ Z% s# V, h1 J7 F        RX errors 0  dropped 0  overruns 0  frame 0: R) O6 {9 X7 R; ]  ]. G
        TX packets 1063884655  bytes 140671638783 (131.0 GiB)8 Y- h' i9 Z& |) P
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
( w& c+ J* u; E9 \5 Z9 n0 Y: [6 v% E
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536  H5 c7 W' h: W' v6 _1 ^& Y$ T
        inet 127.0.0.1  netmask 255.0.0.0
8 q  Z% A* q6 Y: h3 c- C% D. G        inet6 ::1  prefixlen 128  scopeid 0x10<host>* I4 T* h. c# ?! B
        loop  txqueuelen 1  (Local Loopback)8 e% g) v( y2 y
        RX packets 236  bytes 20076 (19.6 KiB)
# e1 f! h! I' O% W' ?! b8 h        RX errors 0  dropped 0  overruns 0  frame 0
) \5 M% J( P' g, a        TX packets 236  bytes 20076 (19.6 KiB)
7 q( W; `2 i+ a$ c* R        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0, f# M) w( F- z, f1 @# u5 Y
+ W- z! b0 [' M0 w2 f( t, a$ q2 d
svc-pat-tap: flags=67<UP,BROADCAST,RUNNING>  mtu 1600" Q* k9 k1 S  Y9 ~( \  z
        inet6 fe80::2409:dff:fee9:b813  prefixlen 64  scopeid 0x20<link>( d& J) X; ?" F* R" m
        ether 26:09:0d:e9:b8:13  txqueuelen 1000  (Ethernet)) k0 Z) z' c+ H
        RX packets 970384507  bytes 81505204036 (75.9 GiB)# p9 R% \$ \) @0 ~( T5 b
        RX errors 0  dropped 23122  overruns 0  frame 05 G. D; c/ K9 y9 `0 p
        TX packets 212601336  bytes 14881348183 (13.8 GiB)
' `. m! D0 Y) T+ |6 _        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 楼主| 发表于 2019-11-8 15:41:07 | 显示全部楼层
ifconfig eth down
1 M. ]. c5 Z5 H/ X1 oifconfig eth up
1 j, ~* z7 f. Q  V2 S; z8 K9 p- D/ H! [
ifdown eth 5 d8 g4 ^2 N3 O' C  X
ifup eth
  n4 T+ X% r& F/ Z
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:36 , Processed in 0.057044 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表