Vas*_*kis 1 networking internet hyper-v centos
无法访问互联网。CentOS 来宾未接收传入流量。
专用网络完全可访问。
在这里挠头...我在 Debian/Ubuntu/Windows 上没有这个问题!:(
192.168.137.1
)192.168.137.16
)192.168.137.0/24
resolv.internode.on.net
)iptables
已停止SELinux
被禁用如果配置
eth0 Link encap:Ethernet HWaddr 00:15:5D:C8:34:5A
inet addr:192.168.137.16 Bcast:192.168.137.255 Mask:255.255.255.0
inet6 addr: fe80::215:5dff:fec8:345a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:111 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12748 (12.4 KiB) TX bytes:1788 (1.7 KiB)
eth1 Link encap:Ethernet HWaddr 00:15:5D:C8:34:5C
inet addr:192.168.137.15 Bcast:192.168.137.255 Mask:255.255.255.0
inet6 addr: fe80::215:5dff:fec8:345c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:147 errors:0 dropped:0 overruns:0 frame:0
TX packets:117 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14087 (13.7 KiB) TX bytes:14587 (14.2 KiB)
Interrupt:9 Base address:0x2000
Run Code Online (Sandbox Code Playgroud)
网络统计-rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.137.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.137.1 0.0.0.0 UG 0 0 0 eth0
Run Code Online (Sandbox Code Playgroud)
猫 /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 192.231.203.132
nameserver 192.231.203.3
Run Code Online (Sandbox Code Playgroud)
猫 /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:15:5D:C8:34:5A
TYPE=Ethernet
UUID=b4fefb4d-1d42-4a28-84b3-9a70b6ea65ca
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
Run Code Online (Sandbox Code Playgroud)
猫 /etc/sysconfig/网络
NETWORKING=yes
HOSTNAME=puppet-free.vm.pe
GATEWAY=192.168.137.1
Run Code Online (Sandbox Code Playgroud)
猫 /etc/udev/rules.d/70-persistent-net-rules
# net device ()
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:5d:c8:34:5a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x1011:0x0009 (tulip)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:5d:c8:34:5c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
Run Code Online (Sandbox Code Playgroud)
小智 8
我在新安装的 Centos 7 上没有互联网连接。就我而言,这是因为 eth0 已关闭。
检查您的设备的状态
nmcli device
Run Code Online (Sandbox Code Playgroud)
如果以太网设备(通常是 eth0)“断开连接”,请使用
nmcli connection up eth0
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
25228 次 |
最近记录: |