首页 路由交换·笔记

三、vlan配置

四、STP配置

五、DHCP配置

六、帧中继配置

DCE配置

[R1]interface s1/0/0
[R1-Serial1/0/0]link-protocol fr
[R1-Serial1/0/0]fr interface-type dce  //接口类型
[R1-Serial1/0/0]fr dlci 100
[R1-Serial1/0/0]ip add 192.168.1.1 24

DTE配置

[R2]interface s1/0/0
[R2-Serial1/0/0]link-protocol fr
[R2-Serial1/0/0]fr interface-type dte

其它配置

#查看PVC
[R1]dis fr pvc-info

#查看映射
[R1]dis fr map-info

#静态映射
[R2-Serial1/0/0]undo fr inarp
[R1-Serial1/0/0]fr map ip 192.168.1.2 100 broadcast
//OSPF中使用组播的网络类型时,应在映射后面加Broadcast

七、单笔路由配置

配置路由器

[R1]int g0/0/0.1  //创建并进入g0/0/0的0.1子接口
[R1-GigabitEthernet0/0/0.1]dot1q termination vid 10  //封装dot1q协议
[R1-GigabitEthernet0/0/0.1]ip address 192.168.10.254 24  //配置IP地址
[R1-GigabitEthernet0/0/0.1]arp broadcast enable  //开启arp广播
[R1-GigabitEthernet0/0/0.1]dhcp select global  //开启DHCP全局模式

[R1-GigabitEthernet0/0/0.1]int g0/0/0.2
[R1-GigabitEthernet0/0/0.2]dot1q termination vid 20
[R1-GigabitEthernet0/0/0.2]ip address 192.168.20.254 24
[R1-GigabitEthernet0/0/0.2]arp broadcast enable
[R1-GigabitEthernet0/0/0.2]dhcp select global

配置交换机

[SW1]vlan batch 10 20  //创建vlan 10和vlan 20
[SW1-GigabitEthernet0/0/1]int g0/0/1  //进入g0/0/1接口
[SW1-GigabitEthernet0/0/1]port link-type access  //修改端口为access模式
[SW1-GigabitEthernet0/0/1]port default vlan 10  //将端口划分到vlan 10中

[SW1-GigabitEthernet0/0/1]int g0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 20

[SW1-GigabitEthernet0/0/2]int g0/0/24  //交换机与路由器相连的接口需要修改为trunk模式
[SW1-GigabitEthernet0/0/24]port link-type trunk  //修改端口为trunk模式
[SW1-GigabitEthernet0/0/24]port trunk allow-pass vlan 10 20  //允许vlan 10和vlan 

八、RIP配置




文章评论

目录