interface FastEthernet 1/0.2

来源:百度知道 编辑:UC知道 时间:2024/05/26 23:14:42
偶然看到这样一段代码,什么意思呢?请高手帮忙解释下:
interface FastEthernet 1/0.1
encapsulation isl 10
ip address 192.168.0.2
!
interface FastEthernet 1/0.2
encapsulation isl 20
ip address 192.168.1.2
!
interface FastEthernet 1/0.3

encapsulation isl 30
ip address 192.168.2.2
!
......
!
router rip
network 192.168.0.0

还有就是interface FastEthernet 1/0.2 这样的语句,其中1/0什么意思呀,后面有个点2,又是怎末解释呀。

进入路由器的1号物理端口的2号虚拟子网。在Vlan划分时,将交换机与路由器相连,但是路由器上不能直接配置ip地址,所以通过在1/0后面加上.2或者.3表示划分出虚拟子网,然后配置不同的ip地址,vlan中计算机的网关地址与虚拟子接口地址相同,如:vlan2中的PC1配置 ip为192.168.1.3 网关要配成192.168.1.254

给以太口(LAN)设IP地址.1/0.1是模块.

自己算!!!

自己算>_<