Advertisement
Guest User

centos 7 network problem

a guest
Nov 23rd, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.25 KB | None | 0 0
  1. # iptables -F
  2. # iptables -t nat -F
  3. # iptables -t mangle -F
  4. # ping 192.168.5.1
  5. PING 192.168.5.1 (192.168.5.1) 56(84) bytes of data.
  6. From 192.168.5.15 icmp_seq=1 Destination Host Unreachable
  7. From 192.168.5.15 icmp_seq=2 Destination Host Unreachable
  8. From 192.168.5.15 icmp_seq=3 Destination Host Unreachable
  9. From 192.168.5.15 icmp_seq=4 Destination Host Unreachable
  10. ^C
  11. --- 192.168.5.1 ping statistics ---
  12. 4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3000ms
  13. pipe 4
  14. # ifconfig
  15. enp2s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
  16.         inet 192.168.5.15  netmask 255.255.255.0  broadcast 192.168.5.255
  17.         inet6 fe80::211:95ff:fe65:e600  prefixlen 64  scopeid 0x20<link>
  18.         ether 00:11:95:65:e6:00  txqueuelen 1000  (Ethernet)
  19.         RX packets 0  bytes 0 (0.0 B)
  20.         RX errors 0  dropped 218103795  overruns 0  frame 0
  21.         TX packets 0  bytes 0 (0.0 B)
  22.         TX errors 0  dropped 194 overruns 0  carrier 0  collisions 0
  23.  
  24. lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
  25.         inet 127.0.0.1  netmask 255.0.0.0
  26.         inet6 ::1  prefixlen 128  scopeid 0x10<host>
  27.         loop  txqueuelen 0  (Local Loopback)
  28.         RX packets 173  bytes 17372 (16.9 KiB)
  29.         RX errors 0  dropped 0  overruns 0  frame 0
  30.         TX packets 173  bytes 17372 (16.9 KiB)
  31.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  32.  
  33. virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
  34.         inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
  35.         ether 0a:66:48:d3:b3:05  txqueuelen 0  (Ethernet)
  36.         RX packets 0  bytes 0 (0.0 B)
  37.         RX errors 0  dropped 0  overruns 0  frame 0
  38.         TX packets 1  bytes 90 (90.0 B)
  39.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  40.  
  41. # iptables -nL
  42. Chain INPUT (policy ACCEPT)
  43. target     prot opt source               destination        
  44.  
  45. Chain FORWARD (policy ACCEPT)
  46. target     prot opt source               destination        
  47.  
  48. Chain OUTPUT (policy ACCEPT)
  49. target     prot opt source               destination        
  50.  
  51. Chain FORWARD_IN_ZONES (0 references)
  52. target     prot opt source               destination        
  53.  
  54. Chain FORWARD_IN_ZONES_SOURCE (0 references)
  55. target     prot opt source               destination        
  56.  
  57. Chain FORWARD_OUT_ZONES (0 references)
  58. target     prot opt source               destination        
  59.  
  60. Chain FORWARD_OUT_ZONES_SOURCE (0 references)
  61. target     prot opt source               destination        
  62.  
  63. Chain FORWARD_direct (0 references)
  64. target     prot opt source               destination        
  65.  
  66. Chain FWDI_public (0 references)
  67. target     prot opt source               destination        
  68.  
  69. Chain FWDI_public_allow (0 references)
  70. target     prot opt source               destination        
  71.  
  72. Chain FWDI_public_deny (0 references)
  73. target     prot opt source               destination        
  74.  
  75. Chain FWDI_public_log (0 references)
  76. target     prot opt source               destination        
  77.  
  78. Chain FWDO_public (0 references)
  79. target     prot opt source               destination        
  80.  
  81. Chain FWDO_public_allow (0 references)
  82. target     prot opt source               destination        
  83.  
  84. Chain FWDO_public_deny (0 references)
  85. target     prot opt source               destination        
  86.  
  87. Chain FWDO_public_log (0 references)
  88. target     prot opt source               destination        
  89.  
  90. Chain INPUT_ZONES (0 references)
  91. target     prot opt source               destination        
  92.  
  93. Chain INPUT_ZONES_SOURCE (0 references)
  94. target     prot opt source               destination        
  95.  
  96. Chain INPUT_direct (0 references)
  97. target     prot opt source               destination        
  98.  
  99. Chain IN_public (0 references)
  100. target     prot opt source               destination        
  101.  
  102. Chain IN_public_allow (0 references)
  103. target     prot opt source               destination        
  104.  
  105. Chain IN_public_deny (0 references)
  106. target     prot opt source               destination        
  107.  
  108. Chain IN_public_log (0 references)
  109. target     prot opt source               destination        
  110.  
  111. Chain OUTPUT_direct (0 references)
  112. target     prot opt source               destination        
  113. # service iptables status
  114. Redirecting to /bin/systemctl status  iptables.service
  115. iptables.service - IPv4 firewall with iptables
  116.    Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
  117.    Active: inactive (dead)
  118.  
  119. # service iptables start
  120. Redirecting to /bin/systemctl start  iptables.service
  121. # systemctl start iptables.service
  122. # service iptables status
  123. Redirecting to /bin/systemctl status  iptables.service
  124. iptables.service - IPv4 firewall with iptables
  125.    Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
  126.    Active: active (exited) since Sun 2014-11-23 17:09:16 EET; 15s ago
  127.   Process: 13857 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=0/SUCCESS)
  128.  Main PID: 13857 (code=exited, status=0/SUCCESS)
  129.  
  130. Nov 23 17:09:16 localhost.localdomain iptables.init[13857]: iptables: Applyin...
  131. Nov 23 17:09:16 localhost.localdomain systemd[1]: Started IPv4 firewall with ...
  132. Nov 23 17:09:28 localhost.localdomain systemd[1]: Started IPv4 firewall with ...
  133. Hint: Some lines were ellipsized, use -l to show in full.
  134. # ping 192.168.5.1
  135. PING 192.168.5.1 (192.168.5.1) 56(84) bytes of data.
  136. From 192.168.5.15 icmp_seq=1 Destination Host Unreachable
  137. From 192.168.5.15 icmp_seq=2 Destination Host Unreachable
  138. From 192.168.5.15 icmp_seq=3 Destination Host Unreachable
  139. From 192.168.5.15 icmp_seq=4 Destination Host Unreachable
  140. ^C
  141. --- 192.168.5.1 ping statistics ---
  142. 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4001ms
  143. pipe 4
  144. # service iptables stop
  145. Redirecting to /bin/systemctl stop  iptables.service
  146. # systemctl stop iptables.service
  147. # systemctl status iptables.service
  148. iptables.service - IPv4 firewall with iptables
  149.    Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
  150.    Active: inactive (dead) since Sun 2014-11-23 17:09:59 EET; 25s ago
  151.   Process: 14023 ExecStop=/usr/libexec/iptables/iptables.init stop (code=exited, status=0/SUCCESS)
  152.   Process: 13857 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=0/SUCCESS)
  153.  Main PID: 13857 (code=exited, status=0/SUCCESS)
  154.  
  155. Nov 23 17:09:16 localhost.localdomain iptables.init[13857]: iptables: Applyin...
  156. Nov 23 17:09:16 localhost.localdomain systemd[1]: Started IPv4 firewall with ...
  157. Nov 23 17:09:28 localhost.localdomain systemd[1]: Started IPv4 firewall with ...
  158. Nov 23 17:09:59 localhost.localdomain systemd[1]: Stopping IPv4 firewall with...
  159. Nov 23 17:09:59 localhost.localdomain iptables.init[14023]: iptables: Setting...
  160. Nov 23 17:09:59 localhost.localdomain iptables.init[14023]: iptables: Flushin...
  161. Nov 23 17:09:59 localhost.localdomain iptables.init[14023]: iptables: Unloadi...
  162. Nov 23 17:09:59 localhost.localdomain systemd[1]: Stopped IPv4 firewall with ...
  163. Nov 23 17:10:17 localhost.localdomain systemd[1]: Stopped IPv4 firewall with ...
  164. Hint: Some lines were ellipsized, use -l to show in full.
  165.  
  166. # ping 192.168.5.1
  167. PING 192.168.5.1 (192.168.5.1) 56(84) bytes of data.
  168. From 192.168.5.15 icmp_seq=1 Destination Host Unreachable
  169. From 192.168.5.15 icmp_seq=2 Destination Host Unreachable
  170. From 192.168.5.15 icmp_seq=3 Destination Host Unreachable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement