Virtual Machine nat networking-general Linux technology-Linux technology and application information, the following is a detailed description. Redhat linux 5
Step 1
Image 2.bmp
Step 2
Open ----- NETWORK ------
Double-click eth0 to open
Image 4.bmp
You can set manual ip addresses or automatic dhcp.
The manual ip address must be in the same network segment as the ip address in windows (windows ip 192.168.5.1 subnet 225.225.225.0 linux 192.168.5.2 225.225.225.0)
Default Gateway
Dhcp can be set using commands
[Root @ hostname root] # vi/etc/sysconfig/network-scripts/ifcfg-eth0
Image 5.bmp
Bootproto = dhcp
Step 3
Setting the primary dns is a windows IP Address
Then reboot
Ubuntu Internet access
Set the same ip address as above
Set dhcp to windows ip Address
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service