-
Du classique : un réseau IPv4 par interface réseau.
- Il suffit de mettre des adresses IPv4 sur les interfaces :
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#interface GigabitEthernet0/1
router(config-if)#ip address 192.168.0.1 255.255.255.0
router(config-if)#exit
router(config)#exit
- Même principe pour les interfaces VLAN :
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#interface Vlan1
router(config-if)#ip address 192.168.0.10 255.255.255.0
router(config-if)#exit
router(config)#exit
- Sur un routeur il faut démarrer le routage :
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#ip routing
router(config)#exit
router#show ip route