烽火2640路由器配置
- 格式:doc
- 大小:26.00 KB
- 文档页数:2
配置模式下输入以下脚本:
hostna ××(修改路由器名称)
aaa authentication login default local
aaa authentication enable default enable
!
username fenghuo password 0 juewang
!
enable password 0 juewang level 15
!
!
!
!
interface GigaEthernet0/0
ip address 173.11.103.135 255.255.255.0(需根据实际更改)
no ip directed-broadcast
ip nat outside
q
!
interface GigaEthernet0/1
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast
ip nat inside
q
!
!
line console 0
password 0 juewang
q
!
line vty 0
password 0 juewang
q
!
line vty 1
password 0 juewang
q
!
line vty 2
password 0 juewang
q
!
line vty 3
password 0 juewang
q
!
ip route default
!
ip access-list standard 1
permit
deny any
q
!
!
ip dhcpd pool 1
network
range
default-router
dns-server
q
!
ip dhcpd enable
ip nat inside source list 1 interface GigaEthernet0/0
write
!