Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@network01 ~]# ip netns exec qdhcp-245a5745-2443-4dae-920d-e2dac423a06b ip a
  2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
  3. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  4. inet 127.0.0.1/8 scope host lo
  5. valid_lft forever preferred_lft forever
  6. inet6 ::1/128 scope host
  7. valid_lft forever preferred_lft forever
  8. 2: ns-06463c22-92: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
  9. link/ether fa:16:3e:bd:47:da brd ff:ff:ff:ff:ff:ff
  10. inet 10.48.67.6/24 brd 10.48.67.255 scope global ns-06463c22-92
  11. valid_lft forever preferred_lft forever
  12. inet 169.254.169.254/16 brd 169.254.255.255 scope global ns-06463c22-92
  13. valid_lft forever preferred_lft forever
  14. inet6 fe80::f816:3eff:febd:47da/64 scope link
  15. valid_lft forever preferred_lft forever
  16. [root@network01 ~]# ip netns exec qdhcp-245a5745-2443-4dae-920d-e2dac423a06b route -n
  17. Kernel IP routing table
  18. Destination Gateway Genmask Flags Metric Ref Use Iface
  19. 0.0.0.0 10.48.67.1 0.0.0.0 UG 0 0 0 ns-06463c22-92
  20. 10.48.67.0 0.0.0.0 255.255.255.0 U 0 0 0 ns-06463c22-92
  21. 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 ns-06463c22-92
  22. [root@network01 ~]# ip netns exec qdhcp-245a5745-2443-4dae-920d-e2dac423a06b ifconfig -a
  23. lo Link encap:Local Loopback
  24. inet addr:127.0.0.1 Mask:255.0.0.0
  25. inet6 addr: ::1/128 Scope:Host
  26. UP LOOPBACK RUNNING MTU:65536 Metric:1
  27. RX packets:271 errors:0 dropped:0 overruns:0 frame:0
  28. TX packets:271 errors:0 dropped:0 overruns:0 carrier:0
  29. collisions:0 txqueuelen:0
  30. RX bytes:74052 (74.0 KB) TX bytes:74052 (74.0 KB)
  31.  
  32. ns-06463c22-92 Link encap:Ethernet HWaddr fa:16:3e:bd:47:da
  33. inet addr:10.48.67.6 Bcast:10.48.67.255 Mask:255.255.255.0
  34. inet6 addr: fe80::f816:3eff:febd:47da/64 Scope:Link
  35. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  36. RX packets:73769 errors:0 dropped:0 overruns:0 frame:0
  37. TX packets:8342 errors:0 dropped:0 overruns:0 carrier:0
  38. collisions:0 txqueuelen:1000
  39. RX bytes:172033034 (172.0 MB) TX bytes:1273563 (1.2 MB)
  40.  
  41.  
  42. [root@network01 ~]# ip netns exec qdhcp-245a5745-2443-4dae-920d-e2dac423a06b iptables -L
  43. Chain INPUT (policy ACCEPT)
  44. target prot opt source destination
  45.  
  46. Chain FORWARD (policy ACCEPT)
  47. target prot opt source destination
  48.  
  49. Chain OUTPUT (policy ACCEPT)
  50. target prot opt source destination
  51.  
  52. [root@network01 ~]# ip netns exec qdhcp-245a5745-2443-4dae-920d-e2dac423a06b iptables -L -t nat
  53. Chain PREROUTING (policy ACCEPT)
  54. target prot opt source destination
  55.  
  56. Chain INPUT (policy ACCEPT)
  57. target prot opt source destination
  58.  
  59. Chain OUTPUT (policy ACCEPT)
  60. target prot opt source destination
  61.  
  62. Chain POSTROUTING (policy ACCEPT)
  63. target prot opt source destination
  64.  
  65. [root@network01 ~]# ip netns exec qdhcp-245a5745-2443-4dae-920d-e2dac423a06b ip r s
  66. default via 10.48.67.1 dev ns-06463c22-92
  67. 10.48.67.0/24 dev ns-06463c22-92 proto kernel scope link src 10.48.67.6
  68. 169.254.0.0/16 dev ns-06463c22-92 proto kernel scope link src 169.254.169.254
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement