发布于:2005-07-04 21:33:04
来自:电气工程/建筑智能化
[复制转发]
下面为没有安装防火墙以前的路由器配置情况。
User Access Verification
Password: (键入TELNET密码,如果你是直接用CONSOLE口进入没有此项提示)
Router>en
Password:
Router#show config (察看ROUTER配置情况命令)
Using 810 out of 7506 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router (ROUTER名字,这里为默认名字ROUTER)
!
enable secret 5 $1$FreK$4oQGtvDEF1jv8dh3NNXnN0.
enable password 123456789 (特权密码,当然这是加密的)
!
ip subnet-zero
!
interface Ethernet0 (配置局域网e0口)
ip address 192.168.1.1 255.255.255.0 (e0口在其局域网中对应的ip为192.168.1.1
ip nat inside 255.255.255.0是表示为C类网络)
!
interface Ethernet1 (E1口没有激活,也没有配置)
no ip address
shutdown
!
interface Serial0
bandwidth 2048
ip address 211.97.213.41 255.255.255.252 (此为定义ROUTER外部接口的IP
ip nat outside 255.255.255.252表示此合法的INTERNET-IP)
encapsulation ppp
!
ip nat pool 165 211.97.213.41 211.97.213.46 netmask 255.255.255.248 (isp给你分配的ip)
ip nat inside source list 1 pool 165 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0
no ip http server
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
line con 0
transport input none
line vty 0 1
password 123456
login
!
end
Router#
全部回复(1 )
只看楼主 我来说两句 抢板凳