[[router R1]]
image = H:\image\C3660-12.4T.BIN
model = 3660
console = 3001
ram = 128
idlepc = 0x6072dbe4
confreg = 0x2102
slot1 = NM-4T
F0/0 = NIO_gen_eth:\Device\NPF_{DC8DAC8C-47C0-432E-A775-241815DFE44E}
s1/0 = R2 s1/0
[[router R2]]
image = H:\image\C3660-12.4T.BIN
model = 3660
console = 3002
idlepc = 0x6072dbe4
ram = 128
confreg = 0x2102
slot1 = NM-4T
F0/0 = NIO_gen_eth:\Device\NPF_{DC8DAC8C-47C0-432E-A775-241815DFE44E}
R1的F0/0配置成原来 猫的IP地址
R2的F0/0换成我们现在猫所在网段 的一个IP地址 (前提你能得到猫的管理帐号,比如用ADSL终结者)
哈哈 现在在2个路由器 上配置个简单的静态路由
就行了 ~~ 直接将他们换到别的网段去 ~~ 而且我们现在还可以在我们的 36上做个QOS限制他们抢占我们的网速
(如果我直接之修改猫的网段他们回去找房东问为什么上不了网 一个劲得重启猫~~~~~)
R2的配置
policy-map a
class class-default
police 50000 conform-action transmit exceed-action drop
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.100.10 255.255.255.0
duplex auto
speed auto
service-policy input a
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 10.1.1.2 255.255.255.0
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 192.168.100.254
ip route 192.168.1.0 255.255.255.0 10.1.1.1
R1的配置
policy-map a
class class-default
police 50000 conform-action transmit exceed-action drop
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.100.10 255.255.255.0
duplex auto
speed auto
service-policy input a
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 10.1.1.2 255.255.255.0
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 192.168.100.254
ip route 192.168.1.0 255.255.255.0 10.1.1.1
阅读(819) | 评论(0) | 转发(0) |