《三层与二层交换机的配置脚本、配置数据、网线接口、网络分配》由会员分享,可在线阅读,更多相关《三层与二层交换机的配置脚本、配置数据、网线接口、网络分配(16页珍藏版)》请在金锄头文库上搜索。
1、三层与二层交换机的配置脚本、配置数据、网线接口、网络分配 三层交换机配置部分 # /改三层交换机的名字 sysname LYXXX-9303 # /开启交换机的FTP服务方便后期备份配置 FTP server enable # /划分VLAN vlan batch 99 255 1000 1200 1210 to 1211 1221 1231 1241 1251 1300 vlan batch 1310 to 1311 1321 1331 1341 1351 1400 1500 1600 1700 1800 # /根据需要开启DHCP服务 dhcp enable # /注释VLAN vlan
2、99 description LinShi vlan 255 description GuanLli vlan 1000 description Uplink vlan 1200 description BanGongLou vlan 1210 description BanGongLou_JiaoShi vlan 1211 description BanGongLou_1F vlan 1221 description BanGongLou_2F vlan 1231 description BanGongLou_3F vlan 1241 description BanGongLou_4F vl
3、an 1251 description BanGongLou_5F vlan 1300 description JiaoXueLou vlan 1310 description JiaoXueLou_JiaoShi vlan 1311 description JiaoXueLou_1F vlan 1321 description JiaoXueLou_2F vlan 1331 description JiaoXueLou_3F vlan 1341 description JiaoXueLou_4F vlan 1351 description JiaoXueLou_5F vlan 1400 de
4、scription WIFI vlan 1500 description WeiJiShi vlan 1600 description SERVER vlan 1700 description KaoQin vlan 1800 description JianKong # /增加管理账户 aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password ciph
5、er lylsjy01 local-user admin service-type http local-user lylsjy password cipher lylsjy01 local-user lylsjy privilege level 3 local-user lylsjy service-type telnet http # /网络没有完全划分完成前做了一个临时VLAN,把所有的地址段都放到了这里,可以不影响大家上网。(网络完成后删除掉) interface Vlanif99 description LinShi ip address 10.16.200.254 255.255.
6、255.0 ip address 10.16.201.254 255.255.255.0 sub ip address 10.16.202.254 255.255.255.0 sub ip address 10.16.203.254 255.255.255.0 sub ip address 10.16.204.254 255.255.255.0 sub ip address 10.16.206.254 255.255.255.0 sub ip address 10.16.207.254 255.255.255.0 sub # /管理地址段 interface Vlanif255 descrip
7、tion GuanLi ip address 10.1.1.1 255.255.255.0 # /上联地址段 interface Vlanif1000 description UP_link_JiaoTiJu ip address 10.17.254.50 255.255.255.252 # /无线覆盖地址段,并开启DHCP(关闭DNS,防止手机上网,后期还有验证功能) interface Vlanif1400 description WIFI ip address 10.16.205.254 255.255.255.128 dhcp select interface dhcp server
8、excluded-ip-address 10.16.205.230 10.16.205.253 # /上联端口上联教体局 interface GigabitEthernet1/0/0 port link-type access port default vlan 1000 # /trunk口 透传VLAN信息 interface GigabitEthernet1/0/1 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /服务器测试口调试临时网络的上网信息
9、interface GigabitEthernet1/0/2 port link-type access port default vlan 99 # /WIFI控制端AC的管理接口 interface GigabitEthernet1/0/3 port link-type access port default vlan 1400 # /trunk口 透传VLAN信息 interface GigabitEthernet1/0/4 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan
10、2 to 4094 # /trunk口 透传VLAN信息 interface GigabitEthernet1/0/5 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk口 透传VLAN信息 interface GigabitEthernet1/0/6 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /tru
11、nk口 透传VLAN信息 interface GigabitEthernet1/0/7 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk口 透传VLAN信息 interface GigabitEthernet1/0/8 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk口 透传VLAN信息 int
12、erface GigabitEthernet1/0/9 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk口 透传VLAN信息 interface GigabitEthernet1/0/10 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk口 透传VLAN信息 interface GigabitE
13、thernet1/0/11 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk口 透传VLAN信息 interface GigabitEthernet1/0/12 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk口 透传VLAN信息 interface GigabitEthernet1/0/13
14、port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk口 透传VLAN信息 interface GigabitEthernet1/0/14 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk口 透传VLAN信息 interface GigabitEthernet1/0/15 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 # /trunk口 透传VLAN