Home > OS >  Ubuntu server can ping network, but can't ping 114.114.114.114 and www.baidu.com, the great god
Ubuntu server can ping network, but can't ping 114.114.114.114 and www.baidu.com, the great god

Time:09-24

Problem as above, now stick configuration:

Ifconfig:
Ens2f0 Link encap: Ethernet HWaddr e8:61:1 f: 25: b6:2 e
Inet addr: 10.2.213.237 Bcast: 10.2.213.255 Mask: 255.255.255.0
Inet6 addr: 2001, 250:209-505: ea61:1 FFF: fe25: b62e/64 Scope: Global
Inet6 addr: 2001, 250:209-508: ea61:1 FFF: fe25: b62e/64 Scope: Global
FFF inet6 addr: fe80: : ea61:1: fe25: b62e/64 Scope: Link
The UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 44618 errors: 0 dropped: 1753 overruns: frame 0:0
TX packets: 116 errors: 0 dropped: 0 overruns: carrier 0:0
Collisions: 0 txqueuelen: 1000
RX bytes: 6999964 (6.9 MB) TX bytes: 13577 (13.5 KB)
Memory: fa000000 - fa7fffff

Ens2f1 Link encap: Ethernet HWaddr e8:61:1 f: 25: b6:2 f
Inet addr: 192.168.0.101 Bcast: 192.168.0.255 Mask: 255.255.255.0
FFF inet6 addr: fe80: : ea61:1: fe25: b62f/64 Scope: Link
The UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 461 errors: 0 dropped: 0 overruns: frame 0:0
TX packets: 342 errors: 0 dropped: 0 overruns: carrier 0:0
Collisions: 0 txqueuelen: 1000
RX bytes: 45696 (45.6 KB) TX bytes: 25483 (25.4 KB)
Memory: f9800000 - f9ffffff

The route
The Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
The default 192.168.0.1 0.0.0.0 UG 0 0 0 ens2f1
10.2.213.0 * 255.255.255.0 U 0 0 0 ens2f0
172.17.0.0 * 255.255.0.0 U 0 0 0 docker0
172.18.0.0 * 255.255.0.0 U 0 0 0 br - 10 fa2d1565c4
172.29.0.0 * 255.255.0.0 U 0 0 0 b780baff01 br - 61
172.30.0.0 * 255.255.0.0 U 0 0 0 br - 7 e832766030b
172.31.0.0 * 255.255.0.0 U 0 0 0 br - b5e497e73663
The 192.168.0.0 * 255.255.255.0 U 0 0 0 ens2f1
192.168.123.0 * 255.255.255.0 U 0 0 0 br - a5eac0527b27
192.168.124.0 * 255.255.255.0 U 0 0 0 br - 7 ce5404b379d


The cat/etc/resolv. Conf
# Dynamic resolv. Conf (5) file for glibc resolver (3) generated by resolvconf (8)
# DO NOT EDIT THIS FILE BY HAND, YOUR CHANGES WILL BE OVERWRITTEN
Nameserver 114.114.114.114
Nameserver 8.8.8.8

The great god help me ~

CodePudding user response:

His ~

CodePudding user response:

Save the children ~

CodePudding user response:

The source/etc/network/interfaces. D/*

# The loopback network interface
Auto lo
Iface lo inet loopback

# The primary network interface
Auto ens2f0
Iface ens2f0 inet static
Address 10.2.213.237
Netmask 255.255.255.0
# This is an autoconfigured IPv6 interface
# iface ens2f0 inet6 auto

# The second network interface
Auto ens2f1
Iface ens2f1 inet DHCP

The DNS nameserver - 114.114.114.114
The DNS nameserver - 8.8.8.8

CodePudding user response:

Is the virtual machine?

CodePudding user response:

MTR traceroute under these two commands to see, where is the newspaper article is deleted,
  • Related