VMware的网络配置详解


关于 VMware 的网络配置一直以来一知半解的,今天遇到了点问题,所以仔细研究了下:

使用环境: fedora15

 

①没有为系统配置网卡的时候,系统正常启动时:

\

这两个网桥来自 :/etc/rc.d/rc.local 文件

[root@localhost /]# more /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
ifconfig eth0 0.0.0.0 promisc up
brctl addbr br0
brctl addif br0 eth0
ifconfig br0 up
ifconfig br0 192.168.1.101 netmask 255.255.255.0
ifconfig eth1 0.0.0.0 promisc up
brctl addbr br1
brctl addif br1 eth1
ifconfig br1 up
ifconfig br1 192.168.0.101 netmask 255.255.255.0

 

② 现在开始来配置网卡:

第一步:

\

第二步:

\

第三步:

\

第四步:

\

第五步:

\

 

上面的五步已经配置好了一张网卡,但是我们fedora15还没有该网卡,因为我们还没有为fedora15加载该网卡呢。

 

③接下来为 fedora15 配置一张网卡 :

第一步:

\

第二步:

\

第三步:

\

第四步:

\

第五步:

\

第六步:

\

第七步:

\

 

好了以及为fedora 配置好了网卡,而且网卡也绑定了相应的网桥了,接下来使用 Tera Term 工具连接fedora 15;

连接示意图:

\

 

现在仅仅是可以通过 tera Term 连接 fedora。

相关内容