神州数码配置命令

上传人:woxinch****an2018 文档编号:38983573 上传时间:2018-05-10 格式:DOC 页数:13 大小:782.49KB
返回 下载 相关 举报
神州数码配置命令_第1页
第1页 / 共13页
神州数码配置命令_第2页
第2页 / 共13页
神州数码配置命令_第3页
第3页 / 共13页
神州数码配置命令_第4页
第4页 / 共13页
神州数码配置命令_第5页
第5页 / 共13页
点击查看更多>>
资源描述

《神州数码配置命令》由会员分享,可在线阅读,更多相关《神州数码配置命令(13页珍藏版)》请在金锄头文库上搜索。

1、Telnet 远程远程 Shell 管理管理 设置交换机 IP 地址 Switch(config)#interface vlan 1 Switch(config-If-Vlan1)#ip address 10.1.1.1 255.255.255.0 Switch(config-If-Vlan1)#no shutdown 交换机设置 Telnet 授权用户和口令;若交换机没有设置授权 Telnet 用户,则任何 用户都无法进入交换机的 CLI 配置界面。 Switch(config)#telnet-user test password 0 test HTTP 远程图形管理远程图形管理 设置交换机

2、 IP 地址Switch(config)#interface vlan 1 Switch(config-If-Vlan1)#ip address 10.1.1.1 255.255.255.0 Switch(config-If-Vlan1)#no shutdown 交换机启动 HTTP Server 功能Switch(config)#ip http server 交换机设置 Web 授权用户和口令;若交换机没有设置授权 Web 用户,则任何用户 都无法进入交换机的 Web 配置界面。Switch(config)#web-user test password 0 test SSH 配置配置Swit

3、ch(Config)#ssh-user test password 0 test Switch(Config)#ssh-server enable VLAN 的基本配置的基本配置 划分 VLAN 100 和 VLAN 200,并加入端口; Switch(Config)#vlan 100 Switch(Config-Vlan100)#switchport interface e0/0/1-5 Switch(Config)#vlan 200 Switch(Config-Vlan200)#switchport interface e0/0/6-10 配置 0/0/24 端口为级联端口 Switch(

4、Config)#interface ethernet 0/0/24 Switch(Config-ethernet0/0/24)#switchport mode trunk switchport trunk allowed vlan 100;200 /#Trunk 端口缺省允许通过所有 VLAN;用户可以通过上述命令设置哪些 VLAN 的流量可以通过 Trunk 口,没有包含的 VLAN 流量则被禁止。 察看配置:show vlan 利用三层交换机实现利用三层交换机实现 VLAN 间路由间路由 为 VLAN 接口设置 IP 地址;Switch(Config)#interface vlan 100

5、 Switch(Config-If-Vlan100)#ip address 192.168.1.1 255.255.255.0 Switch(Config)#interface vlan 200 Switch(Config-If-Vlan200)#ip address 192.168.2.1 255.255.255.0Switch-1 的配置hostname Switch-1 interface ethernet 0/0/1-2 port-group 1 mode on vlan 100 switchport interface ethernet 0/0/16-20 vlan 200 swit

6、chport interface ethernet 0/0/6-10 vlan 300 switchport interface ethernet 0/0/11-15 interface port-channel 1 switchport mode trunk switchport trunk allowed vlan 100;200;300 Switch-2 的配置hostname Switch-2 interface ethernet 0/0/1-2 port-group 2 mode on vlan 100 switchport interface ethernet 0/0/16-20

7、vlan 200 switchport interface ethernet 0/0/6-10 vlan 400 switchport interface ethernet 0/0/11-15 interface port-channel 2 switchport mode trunk switchport trunk allowed vlan 100;200;400 Switch 的二层配置interface ethernet 0/0/1-2 port-group 1 mode on interface ethernet 0/0/3-4 port-group 2 mode on vlan 1

8、00 vlan 200 vlan 300 vlan 400 vlan 500 switchport interface ethernet 0/0/11-15 interface port-channel 1 switchport mode trunk switchport trunk allowed vlan 100;200;300 interface port-channel 2 switchport mode trunk switchport trunk allowed vlan 100;200;400 Switch 三层配置interface vlan 100 ip address 19

9、2.168.10.1 255.255.255.0 interface vlan 200 ip address 192.168.20.1 255.255.255.0 interface vlan 300 ip address 192.168.30.1 255.255.255.0 interface vlan 400 ip address 192.168.40.1 255.255.255.0 interface vlan 500 ip address 192.168.50.1 255.255.255.0三层交换机中三层接口的创建三层交换机中三层接口的创建 要将某一个端口设定为三层端口,需要将它加入

10、到某一个 VLAN 中,然后为该 VLAN 设置 IP 地址 Vlan 100 Int f0/4 Switchport access vlan 100 Int vlan 100 Ip address 11.1.1.1 255.255.255.0 No shutdownDHCP 的配置的配置Switch(Config)#Service dhcp启动/关闭 DHCP 服务Switch(Config)#ip dhcp pool ASwitch(dhcp-A-config)#network 10.16.1.0 24Switch(dhcp-A-config)#lease 3 10 32Switch(dh

11、cp-A-config)#default-route 10.16.1.200 10.16.1.201 Switch(dhcp-A-config)#dns-server 10.16.1.202Switch(dhcp-A-config)#exit Switch(Config)#ip dhcp excluded-address 10.16.1.200 10.16.1.201二层交换机端口安全配置二层交换机端口安全配置设置静态一一映射: Mac-adderess-table static address 22-22-22-22-22-22-22 vlan 10 int f0/3设置安全端口地址: In

12、t f0/3 Switchport port-security Switchport port-security mac-address 22-22-22-22-22-22神州数码路由器配置命令神州数码路由器配置命令端口基本配置端口基本配置interface serial 1/0 encapsulation hdlc ip address 192.168.10.1 255.255.255.252 physical-layer speed 2048000 !PAP 认证配置(双向认证)认证配置(双向认证)DCR-1 配置: interface s0/1 encapsulate ppp ip ad

13、d 192.168.10.1 255.255.0.0 ppp authentication pap ppp pap user routerA aaa physical-layer speed 2048000 username routerB password bbb DCR-2 配置: username routerA password aaa interface s0/1 encapsulate ppp ip add 192.168.10.2 255.255.0.0 ppp authentication pap ppp pap user routerB bbb CHAP 协议配置协议配置DC

14、R-1 配置: username digitalchina2 password legend interface Serial1/0 encapsulation ppp ppp authentication chap ppp chap hostname digitalchina1 PPP chap password legend ip address 192.168.10.1 255.255.255.252 physical-layer speed 2048000 DCR-2 配置: username digitalchina1 password legend interface Serial

15、1/0 encapsulation ppp ppp authentication chap ppp chap hostname digitalchina2 PPP chap password legend ip address 192.168.10.2 255.255.255.252 RIP 协议配置协议配置DCR-1(config)#router rip DCR-1(router-rip)#network 192.200.10.4 255.255.255.252 DCR-1(router-rip)#version 2 DCR-1(router-rip)#redistribute connect OSPF 协议配置协议配置router ospf 1 network 192.200.10.4 255.255.255.252 area 0 redistribute connect NAT 配置配置如上图所示,公司申请了一个合法的如上图所示,公司申请了一个合法的 IP 地址,公司局域网用户使用一个地址,公司局域网用户使用一个 IP 地址连接入地址连接入 internet interface fastethernet 0/0 ip address 192.168.1.1 255.255.255.0 ip nat inside interface serial 1/0 encaps

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 其它中学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号