单臂路由配置

单臂路由配置_第1张图片
1.单臂路由
 
switch:     划分VLAN
vlan database
vlan 2
vlan 3
exit
config t
int fa0/1
swi acc vlan 2
int fa0/2
swi acc vlan 3
int fa0/3
swi acc vlan 2
int fa0/4
swi acc vlan 3
int fa0/5
switchport mode trunk ------开干道
end
----------------------
router :
enable
config t
int fa0/0
no shutdown      ----------激活主接口
int fa0/0.2            -----------进入子接口
enca dot1q 2     -------------封装干道协议  2为VLAN 的编号
ip add 192.168.1.100 255.255.255.0    --------------子接口设置IP
no shut
int fa0/0.3
enca dot1q 3     ----------3为VLAN 的 编号
ip add 192.168.2.100 255.255.255.0
no shutdonw
end
 
测试:
PC>ping 192.168.2.10
Pinging 192.168.2.10 with 32 bytes of data:
Reply from 192.168.2.10: bytes=32 time=93ms TTL=127
Reply from 192.168.2.10: bytes=32 time=125ms TTL=127
Reply from 192.168.2.10: bytes=32 time=109ms TTL=127
Reply from 192.168.2.10: bytes=32 time=125ms TTL=127
Ping statistics for 192.168.2.10:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 93ms, Maximum = 125ms, Average = 113ms

单臂路由实验总结:
1.PC的网关子接口的IP
2.交换机干道要开启
3.路由上首先先开主接口
4.子接口先等封装协议,再设置IP

本文出自 “wingraul” 博客,转载请与作者联系!

你可能感兴趣的:(职场,路由,休闲,单臂)