找回密码
 注册
查看: 4343|回复: 2

neutron pat ip netns 测试ping网络测试

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2019-11-7 15:00:07 | 显示全部楼层 |阅读模式
neutron 的pat口上使用ip netns
9 g& H, m2 _7 h$ ~6 U5 F9 p. vsudo ip netns exec pat ping 114.114.114.114
0 g0 u9 k" H( j: S1 S1 D- GPING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.6 {* S7 Q3 |% ]6 ]
64 bytes from 114.114.114.114: icmp_seq=1 ttl=74 time=33.3 ms
! z: ]6 X: I# a

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2019-11-8 15:24:23 | 显示全部楼层
ip netns exec pat bash9 c4 B2 l. ~( y4 n. `
[root@localhost0 deployer]# ifconfig -a
- H, e$ _/ u* k- ?6 j. lbond1.107: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1600$ _1 N3 A. C9 }: n. Y
        inet 10.64.38.40  netmask 255.255.255.0  broadcast 0.0.0.0# }' U4 k. v% ?/ p  \# J
        inet6 fe80::4adf:37ff:fe06:2019  prefixlen 64  scopeid 0x20<link>
% `/ q* Y$ q1 B1 g# r; N        ether 48:df:37:06:20:19  txqueuelen 1000  (Ethernet)
0 w. t8 f# |1 y% S7 N9 F        RX packets 299880696  bytes 27086431703 (25.2 GiB)6 l- n1 j" Q! E7 r/ `/ x
        RX errors 0  dropped 0  overruns 0  frame 0
8 f6 y1 B6 ?+ Y; g. _% F        TX packets 1063884655  bytes 140671638783 (131.0 GiB)! t, Y) j3 ~  h2 `7 Y
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
4 `8 b% A) I$ i+ s$ c  O( I( H# k2 M$ t* A* R' s
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
6 v8 p* G* r6 H# u1 ]        inet 127.0.0.1  netmask 255.0.0.0# Z- f0 I( x/ Y, L( H
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
" {+ L7 q- t$ g( V        loop  txqueuelen 1  (Local Loopback)
" }% n( j# L" c  L$ m' T2 e& c        RX packets 236  bytes 20076 (19.6 KiB)9 s: V3 c+ {  T$ s7 {
        RX errors 0  dropped 0  overruns 0  frame 0
0 b1 g) t, }: h0 g" x7 Z3 J) q0 h        TX packets 236  bytes 20076 (19.6 KiB)7 w5 @! y7 Y# ^5 O; K8 L; h
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  L. K) E% E+ `+ ?6 S, F/ A; Y# f, Q$ i
svc-pat-tap: flags=67<UP,BROADCAST,RUNNING>  mtu 1600
( m( a5 _& V( c/ y4 }6 c7 O        inet6 fe80::2409:dff:fee9:b813  prefixlen 64  scopeid 0x20<link>% k( J. C; d$ t& S
        ether 26:09:0d:e9:b8:13  txqueuelen 1000  (Ethernet)3 O5 u8 t& u6 O/ c/ \& p
        RX packets 970384507  bytes 81505204036 (75.9 GiB)
- f4 b" U! J! h/ U& E  g        RX errors 0  dropped 23122  overruns 0  frame 0
7 x6 _% h& y% g; P0 m        TX packets 212601336  bytes 14881348183 (13.8 GiB), z2 H6 [! r$ k+ E7 I
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2019-11-8 15:41:07 | 显示全部楼层
ifconfig eth down 6 n4 ^9 _5 k& K! _( d; ^- ~9 C
ifconfig eth up $ g7 d% z1 d0 g) k' g0 R: H% w2 [5 c

) c" [, o2 K" N1 C+ ^ifdown eth
" q  |, T" s2 ~ifup eth : C) A; i# B+ f% V
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:29 , Processed in 0.017467 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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