12.配置vlan设备,以eth0为例,vconfig eth0 2;vconfig eth0 3,在主端口上配置vlan 1 的ip地址。
13.在vlan设备上设置ip地址。Ifconfig eth0.2 ipaddress netmask mask
14.在vlan设备上设置MAC地址。Ifconfig eth0.2 MACaddress(ifconfig用法请用ifconfig --help来查看)。
15.将路由器上和Linux相连的端口配置成trunk,以cisco 3548为例 interface fastethernet 0/48 swit页码:[1] [2] [3] [4] [5] [6] 第5页、共6页 |