今日任务
1、写关于子网划分和IP汇聚的题目
2、简单的单臂路由练习
今日总结
一、简单的单臂路由
步骤一:在SWA上配置主机名,创建vl10、20.。并分别将f0/1、f0/2加入vl10、20中。
Switch>en
Switch#conf t
Switch(config)#host SWA
SWA(config)#vl 10
SWA(config-vlan)#vlan 20
SWA(config-vlan)#exit
SWA(config)#int f0/1
SWA(config-if)#sw acc vlan 10
SWA(config-if)#int f0/2
SWA(config-if)#sw acc vl 20
步骤二:在SWA上,将G0/1接口转为Trunk模式
SWA(config-if)#int g0/1
SWA(config-if)#sw mo trunk
步骤三:给R1配置IP
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#int g0/0
R1(config-if)#no shut
R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
R1(config-if)#no ip add
R1(config-if)#int g0/0.1
R1(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.1, changed state to up
R1(config-subif)#enca?
encapsulation
R1(config-subif)#enca
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip add 192.168.10.254 255.255.255.0
R1(config-subif)#no shut
R1(config-subif)#int g0/0.2
R1(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.2, changed state to up
R1(config-subif)#encap
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip add 192.168.20.254 255.255.255.0
R1(config-subif)#no shut
二、题目
明日目标
1、继续学习单臂路由
2、明天请教请教第二大题怎么做,那里是突破口。