您好,欢迎来到钮旅网。
搜索
您的当前位置:首页配置命令

配置命令

来源:钮旅网
配置命令.txt不怕偷儿带工具,就怕偷儿懂科技! 1品味生活,完善人性。存在就是机会,思考才能提高。人需要不断打碎自己,更应该重新组装自己。1.配置vlan

在登录交换机后输入 sys 回车

在[h3c]状态下:输入 vlan 100 配置办公网vlan: vlan 100 配置新营销vlan: vlan 333 配置旧营销vlan: vlan 222 配置数据vlan: vlan 200

2、配置端口到vlan内 配置办公网vlan端口

[h3c-vlan-100]port eth1/0/1 to eth1/0/6

[h3c-vlan-100]ip address 10.227.207.2 255.255.255.0 设置VLAN100的网关为10.227.207.2 配置新营销网端口

[h3c-vlan-333]port eth1/0/7 to eth1/0/12

[h3c-vlan-222]port eth1/0/13 to eth1/0/18

[h3c-vlan-200]port eth1/0/19 to eth1/0/24

[h3c-ethernet1/0/14]port access vlan 300 把当前端口(14口)加到VLAN300

3、配置汇聚接口

[h3c]int eth1/0/25

[h3c-ethernet1/0/25] port link-type trunk

[h3c-ethernet1/0/25] port trunk permit vlan all

[h3c]int eth1/0/26 进入26端口

[h3c-ethernet1/0/26] port link-type trunk 设置端口类型为汇聚端口

[h3c-ethernet1/0/26] port trunk permit vlan all 设置端口汇聚所有的VLAN

如果是[h3c-ethernet1/0/26] port trunk permit vlan 100 200 则为设置该端口只汇聚VLAN100和VLAN200

[h3c]int eth1/0/27

[h3c-ethernet1/0/27] port link-type trunk

[h3c-ethernet1/0/27] port trunk permit vlan all

[h3c]int eth1/0/28

[h3c-ethernet1/0/28] port link-type trunk

[h3c-ethernet1/0/28] port trunk permit vlan all

4、配置telnet登录口令

user-interface vty 0 4 user privilege level 3 级别

set authentication password simple admin 密码

5、保存配置 save

6、配置管理VLAN

指定VLAN1为管理VLAN management-vlan 1

设置VLAN 100不为管理VLAN

undo interface Vlan-interface 100

7、STP服务配置(智能环网,防止环回广播风暴) [h3c]stp enable 打开STP服务 [h3c]stp mode rstp 设置STP的模式

[h3c]stp root primary 设置当前交换机为根桥

8、DHCP中继 (该功能是针对VLAN的,作用是跨VLAN使用同一DHCP服务器,DHCP中继不能与DHCP snooping同时使用,如该VLAN与DHCP服务器处于同一VLAN则不需使用) [h3c]dhcp enable 开启DHCP服务

[h3c]interface vlan-interface 200 进入VLAN200

[h3c-vlan-interface200]dhcp select relay 开启中继服务

[h3c]dhcp relay server-group 1 ip 10.227.207.1 设置DHCP服务器组1

[h3c-vlan-interface200]dhcp relay server-select 1 设置VLAN200对应的DHCP服务器为组1

9、DHCP snooping (功能是生成IP MAC对应地址表,使计算机能自动获取) [h3c]dhcp-snooping 打开DHCP snooping功能

[h3c-ethernet1/0/14]dhcp-snooping trust 将14口设为信任端口,通常该端口接DHCP服务器,上联上层交换机汇聚端口中也使用

10、ARP入侵检测 (该功能是针对VLAN的) [h3c]vlan 200

[h3c-vlan200]arp detection enable vlan200打开ARP检测

[h3c-ethernet1/0/24]arp detection trust 24口设为信任端口,通常为上行汇聚端口

11、OSPF动态路由

ospf 1

area 0.0.0.8

network 10.228.175.180 0.0.0.3 network 10.227.207.0 0.0.0.255

display ospf peer 查看OSPF邻居信息

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- niushuan.com 版权所有 赣ICP备2024042780号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务