三、配置文件说明
思科路由器配置文件(部分):
Current configuration:
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Cisco //定义路由器主机名
!
enable secret 5 $QB$O1nBb A1olUQ JU1JQRUxNe$oHa0 //enable密码
!
no ip domain-lookup
!
interface Loopback0
ip address 192.168.0.1 255.255.255.0 //定义Loopback地址,也可以不定义
!
interface Ethernet1/0
description zhongxin
ip address 172.16.1.1 255.255.255.0
!
interface Serial2/0
description connect to Huawei
encapsulation ppp //缺省的封装是HDLC
ip address 192.168.1.1 255.255.255.252
!
router ospf 10
network 172.16.1.0 0.0.0.255 area 0 //定义area 0
network 192.168.1.0 0.0.0.3 area 0 //定义area 0
network 192.168.0.0 0.0.0.255 area 0 //如果没有定义Loopback地址,或者不希望//Loopback地址可OSPF路由,可以不需要
!
ip classless
no ip http server
!
line con 0
transport input none
line aux 0
line vty 0 4
password 7 00450CB01A564A 1A0B //telnet密码,加密显示
login
!
end
华为路由器配置文件(部分):
Current configuration
!
version 1.74
local-user hw service-type administrator password cipher @'E8P0>+S>'-LGXJQ//定义用户hw,Adminstrator用户是路由器的管理员身份用户,拥有路由器所有命//令的执行权限,cipher方式下密码密文存放,simple方式下密码明文存放。
router id 192.168.0.2 //定义路由器ID,OSPF中用来标识路由器
sysname huawei //定义路由器主机名
firewall enable
!
interface Aux0