VMware 的网络配置详解(一)

来源:互联网 发布:ubuntu16 安装mysql 编辑:程序博客网 时间:2024/05/16 14:35

关于 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/localifconfig eth0 0.0.0.0 promisc upbrctl addbr br0brctl addif br0 eth0ifconfig br0 upifconfig br0 192.168.1.101 netmask 255.255.255.0ifconfig eth1 0.0.0.0 promisc upbrctl addbr br1brctl addif br1 eth1ifconfig br1 upifconfig br1 192.168.0.101 netmask 255.255.255.0


 

② 现在开始来配置网卡:

    第一步:

   

 

   

  第二步:

   

 第三步:

  

 第四步:

 

第五步:

  

 

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

 

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

  第一步:

 

 

 

 第二步:

 

第三步:

 

第四步:

 

第五步:

 

第六步:

 

第七步:

 

 第八步:(仅仅查看网桥)

 

 

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

  连接示意图:

  

 

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

  待续、、、 

 

 

 

0 0