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

neutron pat ip netns 测试ping网络测试

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2019-11-7 15:00:07 | 显示全部楼层 |阅读模式
neutron 的pat口上使用ip netns4 s0 _3 s# L  ?* k
sudo ip netns exec pat ping 114.114.114.114
; }$ G" V' y' |+ ?, H% KPING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.. R3 {! U1 f; F3 u  W3 p+ r! @
64 bytes from 114.114.114.114: icmp_seq=1 ttl=74 time=33.3 ms
+ b) B/ t8 E! _: @+ P) J8 y

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2019-11-8 15:24:23 | 显示全部楼层
ip netns exec pat bash
" |7 M9 A+ R! f[root@localhost0 deployer]# ifconfig -a
6 P% N$ A5 e+ x: kbond1.107: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1600$ A7 p# N' J" T2 z# T' }) T- `2 k
        inet 10.64.38.40  netmask 255.255.255.0  broadcast 0.0.0.0
( R. X* L# S, v9 B% s# t        inet6 fe80::4adf:37ff:fe06:2019  prefixlen 64  scopeid 0x20<link>2 d& W1 s+ a% H; s% e
        ether 48:df:37:06:20:19  txqueuelen 1000  (Ethernet)* F8 j  B6 M: c0 Z- n
        RX packets 299880696  bytes 27086431703 (25.2 GiB): |; Z" P* V* b  n1 c5 v
        RX errors 0  dropped 0  overruns 0  frame 0
6 U8 ~7 {  i8 B: C/ U; y$ `        TX packets 1063884655  bytes 140671638783 (131.0 GiB)
8 W: M( Q& W2 A+ R6 ], W        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0/ D: L; ^& W. p

( h3 }0 l5 j6 [) w1 ]7 klo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
! t, _$ V8 V/ k, d- q        inet 127.0.0.1  netmask 255.0.0.0
" F0 n: E* l! y5 W) c        inet6 ::1  prefixlen 128  scopeid 0x10<host>5 u' s9 D1 L+ o6 J- x: w+ _
        loop  txqueuelen 1  (Local Loopback)
4 E2 ^1 x' @3 O! o3 b2 k$ j  F        RX packets 236  bytes 20076 (19.6 KiB)
3 c% }! w% S. J, p8 _        RX errors 0  dropped 0  overruns 0  frame 0
/ D5 \' P  Q5 L! i: S( v        TX packets 236  bytes 20076 (19.6 KiB)4 A" h3 v% h4 q" W' ~
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 00 X2 [/ U% z/ ]2 R

3 o% e1 v6 [7 Jsvc-pat-tap: flags=67<UP,BROADCAST,RUNNING>  mtu 1600* A6 r0 g4 v6 f% p7 K
        inet6 fe80::2409:dff:fee9:b813  prefixlen 64  scopeid 0x20<link>$ v& c  i3 ]& D- E6 Q, L
        ether 26:09:0d:e9:b8:13  txqueuelen 1000  (Ethernet)
. _: v2 c# [8 N# Z        RX packets 970384507  bytes 81505204036 (75.9 GiB)) d( K* z* @! L2 {1 y8 P
        RX errors 0  dropped 23122  overruns 0  frame 0, m' C8 \. O# p" l" w
        TX packets 212601336  bytes 14881348183 (13.8 GiB)
2 N' V8 b0 Y; F$ j- Y7 p        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 7 q& v* L! ^9 ]; ?2 i
ifconfig eth up
* X% j- a' f" V; I' {/ ^( L! m" ?
ifdown eth 7 R6 x+ J% y- R- w4 F8 ~/ |
ifup eth
% ], S/ r! A% Y4 L& j8 ^; u
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:10 , Processed in 0.015335 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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