两台CISCO2691测试静态路由汇总,浮动静态路由和负载分担静态路由配置

本文详细介绍了Dynagen配置文件的内容,包括Lab2-5部分的配置参数,以及两个路由器R1和R2的初始化设置。R1配置了FastEthernet0/0和FastEthernet0/1端口,而R2则配置了多个Loopback接口及FastEthernet0/0端口。此外,展示了如何通过showstart命令查看路由器启动时的状态信息。

Dynagen的配置文件内容:

#Lab 2-5

autostart = False



[localhost]
    
    
    
    [[2691]]
        
        
        ram = 128
        image = C:\Program Files (x86)\Dynamips\images\c2691-jk9s-mz.123-17.image
    
    
    
    
    
    
    [[Router r1]]
        
        model = 2691
        console = 3001
        
        s1/0 = r2 s1/0
        f0/1 = r2 f0/1
        F0/0 = NIO_gen_eth:\Device\NPF_{F5FD1986-FC1E-41CE-AF58-F8B4D1333DFC}
        idlepc = 0x604bba50
    
    
    
    [[Router r2]]
        
        model = 2691
        console = 3002
        idlepc = 0x603da79c
        
     

 

R1的配置:

r1#show start
Using 948 out of 57336 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
no ip cef
!
!
!
!
!         
!
!
!
!
!
!
!
!
! 
!
!
!
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 12.0.0.1 255.255.255.248
 duplex auto
 speed auto
!
interface Serial1/0
 ip address 21.0.0.1 255.255.255.248
 serial restart-delay 0
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
ip http server
no ip http secure-server
ip classless
ip route 172.31.4.0 255.255.252.0 FastEthernet0/1
ip route 172.31.4.0 255.255.252.0 Serial1/0 50
!
!
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
 login
!
end

 

R2的配置:

r2#show start
Using 1084 out of 57336 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
ip cef
!
!
!
!
!         
!         
!
!
!
!
!
!
!
! 
!
!
!
!
interface Loopback0
 ip address 172.31.4.1 255.255.255.0
!
interface Loopback1
 ip address 172.31.5.1 255.255.255.0
!
interface Loopback2
 ip address 172.31.6.1 255.255.255.0
!
interface Loopback3
 ip address 172.31.7.1 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 12.0.0.2 255.255.255.248
 duplex auto
 speed auto
!
interface Serial1/0
 ip address 21.0.0.2 255.255.255.248
 serial restart-delay 0
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
ip http server
no ip http secure-server
ip classless
!
!
!
!
!
!
!
!
!
!
!
!         
line con 0
line aux 0
line vty 0 4
 login
!
end

 

截图:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值