cisco路由器的一些基本配置

一、 设置路由器管理信息
1、 用扁平控制线接上9孔接头,连接CONSOLE到终端或PC串口,设置终端或直接连至串口的超级终端的参数:BAND率9600,无奇偶校验,8位数据位,1位停止位.
2、 路由器上电,终端屏幕上会显示上电过程。
3、 进入特权模式设置口令
line vty 0 4
password bc123
exit
enable secret asdf12345
exit
4、 在特权模式设置路由器信息:
hostname 3640
ip domain-list jzl.cq
ip domain-list jz2.cq
ip domain-name jzl.cq
ip name-sever 10.154.34.1
5、 进入全局模式,配置以太网地址
configure timinal
interface fastethernet 0/0
ip address 192.168.254.254 255.255.255.0
no shutdown
exit
interface fastethernet 1/0
ip address 10.154.34.253 255.255.255.252
no shutdown
exit

设置IP路由功能开放
ip routing

设置拨入客户名和口令
username user1 password 1234

设置拨号组参数,为拨号客户指定ip地址
line 65 72
autoselect ppp
modem inout
transport inputall
exit
interface group-async1
ip unnumbered fastethernet 1/0
encapsulation ppp
dialer in band
dialer map ip 10.154.34.247 name user 1
async default routing
anync mode interactive
peer default ip address pool default
ppp authentication chap pap
group-ranger 65 72 ;路由器远程拨入端口

设置内部ospf路由协议、静态路由
access-list 77 permit 10.154.34.0 0.0.1.255
router ospf 110
redistribute connected subnets
redistribute static subnets
passive-interface fastethernet 0/0
network 10.154.34.0 0.0.255 area 0
network 10.154.35.0 0.0.0.255 area 0
distribute-list 77 out
exit
ip default-gateway 10.154.34.254
Ip router 0.0.0.0 0.0.0.0 10.154.34.254
Ip router 10.0.0.0 255.0.0.0 10.154.34.254
Ip router 192.168.0.0 255.255.0.0 192.168.254.1

设置NAT转换
access-list 99 deny 192.168.3.1
access-list 99 permit 192.168.3.0 0.0.0.255
access-list 99 permit 192.168.0.0 0.0.255.255
ip nat pool netdyn 10.154.35.1 10.154.35.126 netmask 255.255.255.0
ip nat inside source list 99 pool netdyn overload
ip nat inside source static 192.168.3.1 10.154.35.1
interface fastethernet1/0
ip nat outside
exit
interface group-async1
ip nat outside
exit
interface fastethernet 0/0
ip nat insider
exit
write memory
本文出自 51CTO.COM技术博客

你可能感兴趣的:(配置,职场,Cisco,路由器,休闲)