動態路由配置

Continue with configuration dialog? [yes/no]: no


Press RETURN to get started!

 

Router>en
Router>enable
Router#conf
Router#configure
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hos
Router(config)#hostname R1
R1(config)#in f0/0
R1(config-if)#ip add 192.168.1.3 255.255.255.0
R1(config-if)#no shu 
R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#in s0/0/0
R1(config-if)#ip add 192.168.2.1 255.255.255.0
R1(config-if)#no shu
R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
R1(config-if)#clock rate 64000
R1(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

R1(config-if)#exit
R1(config)#ro
R1(config)#router rip  《=======================配置動態路由
R1(config-router)#ne
R1(config-router)#network 192.168.1.0  《===================通告網段
R1(config-router)#ne
R1(config-router)#network 192.168.2.0   《=======================通告網段

該路由器每個接口所連得網段是多少就 network xxx.xxx.xxx.0   (通告網段)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章