换接入商网站备案,做图片祝福的网站,网站建设flash设计,企业网站维护的要求包括1.问题现象
虚拟机打开后#xff0c;使用ifconfig查看IP信息#xff0c;虚拟机默认的网卡名称是ens33#xff0c;ifconfig没有看到相关问题#xff0c;远程连接工具Xshell也不能正常访问该虚拟机。
[rootnode1 ~]# ifconfig
lo: flags73UP,LOOPBACK,RUNNING mtu…1.问题现象
虚拟机打开后使用ifconfig查看IP信息虚拟机默认的网卡名称是ens33ifconfig没有看到相关问题远程连接工具Xshell也不能正常访问该虚拟机。
[rootnode1 ~]# ifconfig
lo: flags73UP,LOOPBACK,RUNNING mtu 65536inet 127.0.0.1 netmask 255.0.0.0inet6 ::1 prefixlen 128 scopeid 0x10hostloop txqueuelen 1000 (Local Loopback)RX packets 0 bytes 0 (0.0 B)RX errors 0 dropped 0 overruns 0 frame 0TX packets 0 bytes 0 (0.0 B)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0virbr0: flags4099UP,BROADCAST,MULTICAST mtu 1500inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255ether 52:54:00:47:f9:45 txqueuelen 1000 (Ethernet)RX packets 0 bytes 0 (0.0 B)RX errors 0 dropped 0 overruns 0 frame 0TX packets 0 bytes 0 (0.0 B)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2.解决方法
重启网络相关服务。
[rootnode1 ~]# systemctl restart NetworkManager
[rootnode1 ~]# systemctl restart network.service
重启网络相关服务后ifconfig查看网络信息如下可以正常连接。
[rootnode1 ~]# ifconfig
ens33: flags4163UP,BROADCAST,RUNNING,MULTICAST mtu 1500inet 192.168.118.128 netmask 255.255.255.0 broadcast 192.168.100.255inet6 fe80::20c:29ff:feda:ad2d prefixlen 64 scopeid 0x20linkether 00:0c:29:da:ad:2d txqueuelen 1000 (Ethernet)RX packets 10 bytes 1112 (1.0 KiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 19 bytes 3529 (3.4 KiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags73UP,LOOPBACK,RUNNING mtu 65536inet 127.0.0.1 netmask 255.0.0.0inet6 ::1 prefixlen 128 scopeid 0x10hostloop txqueuelen 1000 (Local Loopback)RX packets 0 bytes 0 (0.0 B)RX errors 0 dropped 0 overruns 0 frame 0TX packets 0 bytes 0 (0.0 B)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0virbr0: flags4099UP,BROADCAST,MULTICAST mtu 1500inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255ether 52:54:00:47:f9:45 txqueuelen 1000 (Ethernet)RX packets 0 bytes 0 (0.0 B)RX errors 0 dropped 0 overruns 0 frame 0TX packets 0 bytes 0 (0.0 B)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0[rootnode1 ~]#