`
Related Operations record
history Ping www.baidu.com ifconfig ifconfig-a cat/etc/ cat/etc/hosts cat/etc/ cat/etc/sysconfig/Network
················
Service Network restart
1 Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Name= "System eth0"
Device= "Eth0"
bootproto= "Static"
Ipv6init= "No"
ipaddr=192.168.1.158
gateway=192.168.1.1
dns1=202.96.134.133
dns2=202.96.128.166
Hwaddr=08:00:27:50:dc:e4
Type= "Ethernet"
uuid=10a5a329-c6d1-4e85-8194-8b4d91cbb331
Defroute=yes
Ipv4_failure_fatal=yes
Ipv6_autoconf=no
Ipv6_defroute=no
Ipv6_failure_fatal=no
Onboot=yes
Nm_controlled=yes
arpcheck= "No"
2 vim/etc/resolv.conf
Parameters from DNS in Win7 Cmd:ipconfig/all at this time, the Win7 IP is manually set
# Generated by NetworkManager 202.96. 134.133 202.96. 128.166
3 Note: Be sure to restart the system
and Win7 network settings do not have a relationship, the system automatically, regardless of it, in addition to the "local connection" manually set up IP and DNS
`
`
`
`
`
`
`
`
`
`
`
`
Win7 CentOS virtual machine bridging Internet