VDC = routers separats
Cada VDC actua com un router diferent. Per parlar entre ells: cable fĂsic.
VDC1
VDC2
Eth1/1 â 10.10.1.2
Eth1/2 â 10.10.2.1
Eth1/3 â 10.10.2.2
Eth1/4 â 10.10.3.1
Cada VDC actua com un router diferent. Per parlar entre ells: cable fĂsic.
Ens conectarme pel Putty/Teraterm pel port de consola. USUARI I CONTRASENYA ES TROBA ALS DOCUMENTS OFICIALS.
USUARICONTRASENYAconf t
vdc VDC1
allocate interface ethernet 1/1-2
exit
vdc VDC2
allocate interface ethernet 1/3-4
exit
exit
DesprĂ©s de crear els VDC, quan introdueixes per primer cop la comanda segĂŒent:
switchto vdc VDC1
El Nexus et farĂ 4 preguntes. Les has de respondre exactament en aquest ordre:
switchto vdc VDC1
conf t
interface ethernet 1/1
ip address 10.10.1.2/24
no shutdown
exit
interface ethernet 1/2
ip address 10.10.2.1/24
no shutdown
exit
exit
switchto vdc VDC2
conf t
interface ethernet 1/3
ip address 10.10.2.2/24
no shutdown
exit
interface ethernet 1/4
ip address 10.10.3.1/24
no shutdown
exit
exit
Quan crees dos routers virtuals amb VDC, cada VDC funciona com si fos un router separat. Per aixĂČ, les xarxes de cada interfĂcie no queden connectades soles.
switchto vdc VDC2
conf t
ip route 0.0.0.0/0 10.10.2.1
exit
switchto vdc VDC1
conf t
ip route 10.10.3.0/24 10.10.2.2
exit
show ip interface brief
show ip route
ping 10.10.2.2
ping 10.10.3.1
Només si ho demanen. VRF = taules de routing separades, com clients diferents.
conf t
vrf context CLIENT-A
exit
vrf context CLIENT-B
exit
interface ethernet 1/1
vrf member CLIENT-A
ip address 10.1.1.1/24
no shutdown
exit
Alternativa a posar rutes estĂ tiques a mĂ . Els routers aprenen xarxes sols.
switchto vdc VDC1
conf t
feature ospf
router ospf 10
router-id 1.1.1.1
exit
interface ethernet 1/1-2
ip router ospf 10 area 0
exit
switchto vdc VDC2
conf t
feature ospf
router ospf 10
router-id 2.2.2.2
exit
interface ethernet 1/3-4
ip router ospf 10 area 0
exit
conf t
feature ospf
router ospf 10
vrf CLIENT-A
router-id 1.1.1.1
exit
vrf CLIENT-B
router-id 1.1.1.2
exit
exit
interface ethernet 1/1-4
ip router ospf 10 area 0
exit
Fes servir el Nexus de la dreta, que és el que va bé.
Com que sĂłn dos routers virtuals separats, les connexions entre VDCs sâhan de fer fĂsicament amb cable.