路由器配置详解

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

路由器配置详解

路由器现有配置标注:

version RGOS 10.3(4b3), Release(59480)(Thu Jul 2 14:48:50 CST 2009 -ngcf34)

#以上为路由器系统版本号以及时间#

hostname CZCGL_JTJ_RJ_Router

#路由器设备名#

!

username dqjtj password dqjtj

#Telnet 管理用户名以及密码,用户名为dqjtj密码为dqjtj#

no service password-encryption

!

ip access-list standard 99

10 permit any

#访问控制列表99,为润需所有IP地址进行NAT。#

!

enable password dqjtj

#设置特权模式密码,密码为dqjtj#

!

interface FastEthernet 0/0

ip nat outside

ip address 10.110.248.82 255.255.255.252

duplex auto

speed auto

#配置F0/0接口IP地址。工作模式自适应,速率模式自适应F0/0接口为外网(跟运营商)相连接口#

!

interface FastEthernet 0/1

duplex auto

speed auto

!

interface FastEthernet 0/2

ip nat inside

ip address 192.168.30.1 255.255.255.0

duplex auto

speed auto

#配置F0/2接口IP地址。工作模式自适应,速率模式自适应F0/2接口为内网接口#

!

interface Tunnel 1

ip address 192.168.67.200 255.255.255.0

tunnel source 10.110.248.82

tunnel destination 10.109.1.254

tunnel key 881

#建立虚拟接口1,并配置IP地址以及目的IP地址和和验证口令

为APN虚拟链路连接使用#

!

!

ip nat pool nat_pool prefix-length 24

address 10.110.248.82 10.110.248.82 match interface FastEthernet 0/0

#定义NAT地址池#

!

ip nat inside source list 99 pool nat_pool

#定义允许控制列表99中的IP地址进行NAT#

!

ip route 0.0.0.0 0.0.0.0 10.110.248.81

#静态IP路由#

ip route 192.168.67.0 255.255.255.0 Tunnel 1

#ANP虚拟链路路由指定#

!

ref parameter 50 400

line con 0

logging synchronous

exec-timeout 0 0

password dqjtj

#设置console管理(带内管理)验证密码以及响应时间。# line aux 0

line vty 0 4

exec-timeout 0 0

login

password dqjtj

#设置Telnet管理(带外管理)密码以及相应时间。#

锐捷产品基本命令标注:

二、配置说明:

1、密码设置类:

Switch> (用户界面,只能实现简单命令) Switch>enable (进入特权模式)

Switch# (特权模式为#号)

Switch# configure terminal (进入配置模式)

Switch(config)# (配置模式)

Switch(config)#exit (exit退出当前模式) Switch# (输入exit后的效果)Switch(config)#username dongfeng password dongfeng (建立一个用户名为dongfeng的用户并且密码为dongfeng)Switch(config)#hostname DF-HX-S7606

(设置设备名为DF-HX-S7606)

DF-HX-S7606(config)# (设置完设备名后的效果)

DF-HX-S7606(config)#lin console 0

(进入console虚拟接口)

DF-HX-S7606(config-line)# password dongfeng

(设置console登陆密码为dongfeng)

DF-HX-S7606(config-line)#exec-timeout 0 0

(设置timeout是间为无,timeout时间就是当用户从console登陆后,多长时间没有动作后,推出到登陆界面)DF-HX-S7606(config-line)#login local

(设置本地验证,也就是交换机自己进行登陆验证)

DF-HX-S7606(config-line)#exit (退出)

DF-HX-S7606(config)#lin vty 0 4

(进入telnet虚拟0-4端口)

DF-HX-S7606(config-line)#password dongfeng

(设置telnet密码为dongfeng)

DF-HX-S7606(config-line)#exec-timeout 0 0

(设置timeout时间为无)

DF-HX-S7606(config-line)#login local

(设置为本地验证)

DF-HX-S7606(config-line)#end

(退出到特权模式,也可使用CTRL+Z。)

DF-HX-S7606#configure terminal

(进入特权模式)

DF-HX-S7606(config)#enable password dongfeng

(设置进入特权模式密码为dongfeng)

#提示:要telnet本台设备,1、要设置管理IP地址;2、

相关文档
最新文档