赞
踩
- system-view
-
- sysname test-Hx
-
- vlan 2
- description to test1
- vlan 3
- description to test2
-
- interface Vlanif2
- description to test1
- ip address 192.168.2.1 255.255.255.0
- dhcp select global
-
- interface Vlanif3
- description to test2
- ip address 192.168.3.1 255.255.255.0
- dhcp select global
-
- interface GigabitEthernet0/0/2
- description to test1
- port link-type access
- port default vlan 2
-
- interface GigabitEthernet0/0/3
- description to test2
- port link-type access
- port default vlan 3
-
- ip pool vlan2
- gateway-list 192.168.2.1
- network 192.168.2.0 mask 255.255.255.0
- excluded-ip-address 192.168.2.200 192.168.2.254
- dns-list 8.8.4.4 8.8.8.8
-
- ip pool vlan3
- gateway-list 192.168.3.1
- network 192.168.3.0 mask 255.255.255.0
- excluded-ip-address 192.168.3.200 192.168.3.254
- dns-list 8.8.4.4 8.8.8.8
-
- # 远程登录,开启ssh ,开启telnet ,开启http登录
- rsa local-key-pair create
- 2048
-
- aaa
- local-user admin password irreversible-cipher admin@123
- local-user admin privilege level 15
- local-user admin ftp-directory flash:
- local-user admin service-type telnet terminal ssh ftp x25-pad http
-
- ssh user admin authentication-type password
- ssh user admin service-type all
-
- stelnet server enable
-
- user-interface vty 0 4
- authentication-mode aaa
- user privilege level 15
- protocol inbound all
-
- ssh server-source all-interface
-
- http server enable
- http server-source all-interface
-
-
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。