PTI : Routage/DHCP - Sur routeur Cisco
Transcription
PTI : Routage/DHCP - Sur routeur Cisco
( ) *+, - , ,# . , //////////////////////////////////////////////////////////////////////////// 0 0 , ///////////////////////////////////////////////////////////////////////////////////////// 0 0 , .//////////////////////////////////////////////////////////////////////////////////////////////////// ,! ////////////////////////////////////////////////// 0 2 0 3 ,! ////////////////////////////////////////////////////////////////////////////////// 0 $ 0 1 1 1 0 4 25 6 7 0 0 ) *+, 0 0 1 6 0 0 1 1 7 ) 1 0 4 6 1 1 1 3 0 3410 0 4/ 46 / & 0 0 ) 2 1 20/ ! 8 9 & < 7 410 : 4% , = > ; 0 / , 0 0 : ' ( ? , @21 ; . "# !$ / # !%! # # & 1 1 enable password enable secret : 1 1 81 ; 81 / Router(config)#enable secret cisco ) : 0 1 0 7 0 6 0 ) ) 0 / Router(config)#ip routing ! " #$%%&' & ) 20 & 20 ) ) 7 4 4 6 0 1 show ip route/ 6 20 ) 0 ) 7 *+, : 0 ) / ) 0 1 20 / 1 70 ) ) *+, 6 0 Router(config)#service dhcp !$ % ' 2 : 0 & 1 9 FastEthernet0/0 0 0 0 0 / 4 ' A / .B/ / 6 0 0 / 1 C0 7 Router(config-if)#ip address 192.168.1.254 255.255.255.0 Router(config-if)#no shutdown no shutdown Dno7 0 E 1 0 60 7 ) 0 49 FastEthernet0/1 C0 7 ) 1 6 0 0 / E ) / 0 A / .B/ / 6 0 0 Router(config-if)#ip address 192.168.2.254 255.255.255.0 Router(config-if)#no shutdown , 1 0 7 7 ) *+, 60 : 0 1 0 1 0 7 0 0 ) / Router(config)#ip dhcp pool network_x Router(dhcp-config)#network 192.168.x.0 255.255.255.0 Router(dhcp-config)#default-router 192.168.x.254 network default-router ) 1 0 1 0; 0 0 )8 4 0 ? 1 / Router(dhcp-config)#dns-server x.x.x.x Router(dhcp-config)#lease 1 dns-server lease ) 2 0 0 E ) 1 7 0 *F 0 49 )8 1 0 7 4 0 ; ! " / 6 1 0 : Router(config)#ip dhcp pool network_reservations Router(dhcp-config)#host 192.168.x.x Router(dhcp-config)#hardware-address xxxx.xxxx.xxxx '4 0 $ 7 10 7 0 1 0 : 60 C 4 0 : 0 4 1 0 Router(config)#ip dhcp excluded-address adresse_début adresse_fin Router(config)#ip dhcp excluded-address 192.168.x.254 ( & 1 0 1 # 0 $/ ! 1 C " 0 #$%%&' " 2 4: # 0 0 2 4 7 1 ) 0 1 2 ) 2 / Router#show ip dhcp binding 7 # 1 20 : 1 E 0 C1 4/ ! ! " #$%%&'