Páginas

miércoles, 17 de marzo de 2021

Implementar VLSM en una Red VLAN Cisco


Implementar conectividad en Sitio Principal (Navarra) utilizando VLANs. 


Aplicar una configuración de switch multicapa a un módulo  del router para proporcionar enrutamiento al sitio principal - Navarra.

1.- Crear las Vlans en R1-NV.
Crear las VLANs - SVI (Switch Virtual Interface) y las Layer 3 Switch Virtual Interfaces.
2.- Asignar direcciones IP del segmento correspondiente a cada Vlan. Estas IPs serán las puertas de enlace predeterminadas, (default gateway).
3.- Modo Trunk en la interfaz Fa0/0/0
4.- Modo Trunk en el otro extremo Gig1/0/1 Core1.
5.- Configurar las Vlans en todos los switches.
6.- Modo Trunk entre las interfaces que conectan los switches, nonegotiate, allowed vlan 1,10,20,30,40.
7.- Modo Access en los clientes finales, Vlan 10, Vlan 20, Vlan 30, Vlan 40.
8.- Comprobar conectividad.

R1 NAVARRA

R1-NV#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1-NV(config)#interface vlan 10
R1-NV(config-if)#exit
R1-NV(config)#inter
R1-NV(config)#interface vlan 10
R1-NV(config-if)#ip address 10.16.0.1 255.255.255.0
R1-NV(config-if)#exit
R1-NV(config)#interface vlan 20
R1-NV(config-if)#ip address 10.16.2.1 255.255.255.0
R1-NV(config-if)#exit
R1-NV(config)#inter vlan 30
R1-NV(config-if)#ip address 10.16.4.1 255.255.254.0
R1-NV(config-if)#exit
R1-NV(config)#interface vlan 40
R1-NV(config-if)#ip address 10.16.6.1 255.255.254.0
R1-NV(config-if)#

10.16.0.1 es el GW por defecto de la VLAN 10 SVI

La interfaz que conecta con el Switch (Core1) fastEthernet 0/0/0 en modo Trunk. Todas las Vlans quedan activas (up).

R1-NV#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1-NV(config)#inter
R1-NV(config)#interface fa
R1-NV(config)#interface fastEthernet 0/0/0
R1-NV(config-if)#switchport mode
R1-NV(config-if)#switchport mode tr
R1-NV(config-if)#switchport mode trunk 
R1-NV(config-if)#switchport nonegotiate 

R1-NV(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up

R1-NV(config-if)#do sh ip inter b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES manual administratively down down 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     unassigned      YES unset  up                    down 
FastEthernet0/0/0      unassigned      YES unset  up                    up 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Serial0/1/0            unassigned      YES unset  down                  down 
Serial0/1/1            unassigned      YES unset  down                  down 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 10.16.0.1       YES manual up                    up 
Vlan20                 10.16.2.1       YES manual up                    up 
Vlan30                 10.16.4.1       YES manual up                    up 
Vlan40                 10.16.6.1       YES manual up                    up
R1-NV(config-if)#
R1-NV#

Core1#sh cdp neighbors 
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID    Local Intrfce   Holdtme    Capability   Platform    Port ID
Core2        Gig 1/0/14       177                    3650        Gig 1/0/14
Core2        Gig 1/0/15       177                    3650        Gig 1/0/15
Access       Gig 1/0/2        177            S       2960        Fas 0/1
R1-NV        Gig 1/0/1        155            R       C2900       Fas 0/0/0
Core1#

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#int
Core1(config)#interface g
Core1(config)#interface gigabitEthernet 1/0/1
Core1(config-if)#switchport trunk enca
Core1(config-if)#switchport trunk encapsulation do
Core1(config-if)#switchport trunk encapsulation dot1q 
Core1(config-if)#switchport mode tr
Core1(config-if)#switchport mode trunk 
Core1(config-if)#switchport nonegotiate 

Core1(config-if)#switchport trunk all

Core1(config-if)#switchport trunk allowed vlan 1,10,20,30,40

Core1(config-if)#


Core1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to down

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

Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Core1#

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#interface gigabitEthernet 1/0/2
Core1(config-if)#switchport trunk enc
Core1(config-if)#switchport trunk encapsulation do
Core1(config-if)#switchport trunk encapsulation dot1q 
Core1(config-if)#switchport mode trunk 
Core1(config-if)#switchport nonegotiate
Core1(config-if)#switchport trunk allowed vlan 1,10,20,30,40

Core1#

Core1(config)#interface gigabitEthernet 1/0/14
Core1(config-if)#switchport trunk all
Core1(config-if)#switchport trunk allowed vlan 1,10,20,30,40
Core1(config-if)#switchport nonegotiate

Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/15
Core1(config-if)#switchport trunk allowed vlan 1,10,20,30,40
Core1(config-if)#switchport nonegotiate

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#vlan 10
Core1(config-vlan)#name VLAN10
Core1(config-vlan)#exit
Core1(config)#inter
Core1(config)#interface vlan 10
%LINK-5-CHANGED: Interface Vlan10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

Core1(config-if)#exit
Core1(config)#vlan 20
Core1(config-vlan)#name VLAN20
Core1(config-vlan)#exit
Core1(config)#interface vlan 20
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Core1(config-if)#exit
Core1(config)#vlan 30
Core1(config-vlan)#name VLAN30
Core1(config-vlan)#exit
Core1(config)#interface vlan 30
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up

Core1(config-if)#exit
Core1(config)#vlan 40
Core1(config-vlan)#name VLAN40
Core1(config-vlan)#exit
Core1(config)#interface vlan 40
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up

Core1(config-if)#exit
Core1(config)#^Z
Core1#
%SYS-5-CONFIG_I: Configured from console by console

Core1#sh vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Gig1/0/3, Gig1/0/4, Gig1/0/5, Gig1/0/6
                                                Gig1/0/7, Gig1/0/8, Gig1/0/9, Gig1/0/10
                                                Gig1/0/11, Gig1/0/12, Gig1/0/13, Gig1/0/16
                                                Gig1/0/17, Gig1/0/18, Gig1/0/19, Gig1/0/20
                                                Gig1/0/21, Gig1/0/22, Gig1/0/23, Gig1/0/24
                                                Gig1/1/1, Gig1/1/2, Gig1/1/3, Gig1/1/4
10   VLAN10                         active    
20   VLAN20                         active    
30   VLAN30                         active    
40   VLAN40                         active    
1002 fddi-default                     act/unsup 
1003 token-ring-default               act/unsup 
1004 fddinet-default                  act/unsup 
1005 trnet-default                    act/unsup 

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
10   enet  100010     1500  -      -      -        -    -        0      0

Core1(config-if)#do sh inter trunk
Port        Mode         Encapsulation  Status        Native vlan
Gig1/0/1    on           802.1q         trunking      1
Gig1/0/2    on           802.1q         trunking      1
Gig1/0/14   on           802.1q         trunking      1
Gig1/0/15   on           802.1q         trunking      1

Port        Vlans allowed on trunk
Gig1/0/1    1,10,20,30,40
Gig1/0/2    1,10,20,30,40
Gig1/0/14   1,10,20,30,40
Gig1/0/15   1,10,20,30,40

Port        Vlans allowed and active in management domain
Gig1/0/1    1,10,20,30,40
Gig1/0/2    1,10,20,30,40
Gig1/0/14   1,10,20,30,40
Gig1/0/15   1,10,20,30,40

Port        Vlans in spanning tree forwarding state and not pruned
Gig1/0/1    1,10,20,30,40
Gig1/0/2    1,10,20,30,40
Gig1/0/14   40
Gig1/0/15   40

Core1(config-if)#


Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#inte
Core2(config)#interface g
Core2(config)#interface gigabitEthernet 1/0/2
Core2(config-if)#sw
Core2(config-if)#switchport tr
Core2(config-if)#switchport trunk enc
Core2(config-if)#switchport trunk encapsulation do
Core2(config-if)#switchport trunk encapsulation dot1q 
Core2(config-if)#switchport mode
Core2(config-if)#switchport mode tr
Core2(config-if)#switchport mode trunk 
Core2(config-if)#sw
Core2(config-if)#switchport non
Core2(config-if)#switchport nonegotiate 
Core2(config-if)#switchport trunk all
Core2(config-if)#switchport trunk allowed vlan 1,10,20,30,40
Core2(config-if)#^Z
Core2#
%SYS-5-CONFIG_I: Configured from console by console

Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#inter
Core2(config)#interface g
Core2(config)#interface gigabitEthernet 1/0/14
Core2(config-if)#sw
Core2(config-if)#switchport tr
Core2(config-if)#switchport trunk enc
Core2(config-if)#switchport trunk encapsulation do
Core2(config-if)#switchport trunk encapsulation dot1q 
Core2(config-if)#sw
Core2(config-if)#switchport mode
Core2(config-if)#switchport mode tr
Core2(config-if)#switchport mode trunk 
Core2(config-if)#sw
Core2(config-if)#switchport non
Core2(config-if)#switchport nonegotiate 
Core2(config-if)#sw
Core2(config-if)#switchport tr
Core2(config-if)#switchport trunk all
Core2(config-if)#switchport trunk allowed vlan 1,10,20,30,40
Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/15
Core2(config-if)#switchport trunk encapsulation dot1q 
Core2(config-if)#switchport mode trunk 
Core2(config-if)#switchport nonegotiate 
Core2(config-if)#switchport trunk allowed vlan 1,10,20,30,40
Core2(config-if)#^Z
Core2#
%SYS-5-CONFIG_I: Configured from console by console

Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#vlan 10
Core2(config-vlan)#name VLAN10
Core2(config-vlan)#exit
Core2(config)#vlan 20
Core2(config-vlan)#name VLAN20
Core2(config-vlan)#exit
Core2(config)#vlan 30
Core2(config-vlan)#name VLAN30
Core2(config-vlan)#exit
Core2(config)#vlan 40
Core2(config-vlan)#name VLAN40
Core2(config-vlan)#exit
Core2(config)#inter
Core2(config)#interface vlan 10
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

Core2(config-if)#exit
Core2(config)#inter
Core2(config)#interface vlan 20
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Core2(config-if)#exit
Core2(config)#interface vlan 30
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up

Core2(config-if)#exit
Core2(config)#interface vlan 40
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up

Core2(config-if)#exit
Core2(config)#^Z
Core2#
%SYS-5-CONFIG_I: Configured from console by console

Core2#sh interfaces tr
Core2#sh interfaces trunk 
Port        Mode         Encapsulation  Status        Native vlan
Gig1/0/2    on           802.1q         trunking      1
Gig1/0/14   on           802.1q         trunking      1
Gig1/0/15   on           802.1q         trunking      1

Port        Vlans allowed on trunk
Gig1/0/2    1,10,20,30,40
Gig1/0/14   1,10,20,30,40
Gig1/0/15   1,10,20,30,40

Port        Vlans allowed and active in management domain
Gig1/0/2    1,10,20,30,40
Gig1/0/14   1,10,20,30,40
Gig1/0/15   1,10,20,30,40

Port        Vlans in spanning tree forwarding state and not pruned
Gig1/0/2    40
Gig1/0/14   1,10,20,30,40
Gig1/0/15   1,10,20,30,40

Core2#


Access(config-if)#exit
Access(config)#vlan 20
Access(config-vlan)#name VLAN20
Access(config-vlan)#exit
Access(config)#inter
Access(config)#interface vlan 20
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Access(config-if)#exit
Access(config)#vlan 30
Core2(config-vlan)#name VLAN30
Access(config-vlan)#exit
Access(config)#inter
Access(config)#interface vlan 30
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up

Access(config-if)#exit
Access(config)#vlan 40
Core2(config-vlan)#name VLAN40
Access(config-vlan)#exit
Access(config)#inter
Access(config)#interface vlan 40
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up

Access#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Access(config)#inter
Access(config)#interface fa
Access(config)#interface fastEthernet 0/1
Access(config-if)#switchport mode trunk 
Access(config-if)#switchport trunk allowed vlan 1,10,20,30,40
Access(config-if)#switchport nonegotiate 
Access(config-if)#exit
Access(config)#interface fastEthernet 0/2
Access(config-if)#switchport mode trunk 
Access(config-if)#switchport nonegotiate 
Access(config-if)#switchport trunk allowed vlan 1,10,20,30,40
Access(config-if)#^Z
Access#
%SYS-5-CONFIG_I: Configured from console by console

Access#sh inter
Access#sh interfaces tr
Access#sh interfaces trunk 
Port        Mode         Encapsulation  Status        Native vlan
Fa0/1       on           802.1q         trunking      1
Fa0/2       on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       1,10,20,30,40
Fa0/2       1,10,20,30,40

Port        Vlans allowed and active in management domain
Fa0/1       1,10,20,30,40
Fa0/2       1,10,20,30,40

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/1       none
Fa0/2       40

Access#
%LINK-5-CHANGED: Interface FastEthernet0/24, changed state to up

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

Access#
Access#en
Access#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Access(config)#inter
Access(config)#interface fa
Access(config)#interface fastEthernet 0/24
Access(config-if)#switchport mode access 
Access(config-if)#switchport access vlan 40
Access(config-if)#
Access(config-if)#^Z
Access#
%SYS-5-CONFIG_I: Configured from console by console

Access#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Access(config)#inte
Access(config)#interface fa
Access(config)#interface fastEthernet 0/10
Access(config-if)#switchport mode
Access(config-if)#switchport mode access 
Access(config-if)#sw
Access(config-if)#switchport acc
Access(config-if)#switchport access vlan 10
Access(config-if)#exit
Access(config)#interface fastEthernet 0/15
Access(config-if)#switchport mode access 
Access(config-if)#switchport access vlan 30
Access(config-if)#exit
Access(config)#interface fastEthernet 0/20
Access(config-if)#switchport mode access 
Access(config-if)#switchport access vlan 20
Access(config-if)#^Z
Access#

Access#sh interfaces fastEthernet 0/24 switchport 
Name: Fa0/24
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 40 (VLAN40)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Appliance trust: none

Access#sh interfaces fastEthernet 0/3 switchport 
Name: Fa0/3
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 10 (VLAN10)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Appliance trust: none

Access(config-if)#do sh vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/3, Fa0/4, Fa0/5, Fa0/6
                                                Fa0/7, Fa0/8, Fa0/9, Fa0/11
                                                Fa0/12, Fa0/13, Fa0/14, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/21
                                                Fa0/22, Fa0/23, Gig0/1, Gig0/2
10   VLAN10                           active    Fa0/10
20   VLAN20                           active    Fa0/20
30   VLAN30                           active    Fa0/15
40   VLAN40                           active    Fa0/24
1002 fddi-default                     act/unsup 
1003 token-ring-default               act/unsup 
1004 fddinet-default                  act/unsup 
1005 trnet-default                    act/unsup 

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
10   enet  100010     1500  -      -      -        -    -        0      0
20   enet  100020     1500  -      -      -        -    -        0      0
30   enet  100030     1500  -      -      -        -    -        0      0
40   enet  100040     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0   
1003 tr    101003     1500  -      -      -        -    -        0      0   
1004 fdnet 101004     1500  -      -      -        ieee -        0      0   
1005 trnet 101005     1500  -      -      -        ibm  -        0      0   

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

Remote SPAN VLANs
------------------------------------------------------------------------------

Primary Secondary Type              Ports
------- --------- ----------------- ------------------------------------------
Access(config-if)#

Dispositivos finales. Configurar IPs, vlan 10, vlan 20, vlan 30, vlan 40:

VLAN 10:
C:\>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::201:C7FF:FE4D:C4D5
   IP Address......................: 10.16.0.10
   Subnet Mask.....................: 255.255.255.0
   Default Gateway.................: 10.16.0.1

C:\>

VLAN 20:
C:\>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::201:63FF:FE51:CDBB
   IP Address......................: 10.16.2.10
   Subnet Mask.....................: 255.255.255.0
   Default Gateway.................: 10.16.2.1

C:\>

VLAN 30:
C:\>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::2D0:D3FF:FE52:1C79
   IP Address......................: 10.16.5.10
   Subnet Mask.....................: 255.255.254.0
   Default Gateway.................: 10.16.4.1

C:\>

VLAN 40:
C:\>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::201:63FF:FE50:4ABB
   IP Address......................: 10.16.7.10
   Subnet Mask.....................: 255.255.254.0
   Default Gateway.................: 10.16.6.1

C:\>

Comprobar conectividad:





Conexión a Internet

Internet(config)#no ip dhcp pool ISP
Internet(config)#ip dhc
Internet(config)#ip dhcp poo
Internet(config)#ip dhcp pool ISP
Internet(dhcp-config)#network 193.37.255.0 255.255.255.252
Internet(dhcp-config)#de
Internet(dhcp-config)#default-router 193.37.255.1
Internet(dhcp-config)#dns
Internet(dhcp-config)#dns-server 1.1.1.1
Internet(dhcp-config)#^Z
Internet#
%SYS-5-CONFIG_I: Configured from console by console

Internet#
Internet#wri
Building configuration...
[OK]
Internet#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Internet(config)#inter
Internet(config)#interface g
Internet(config)#interface gigabitEthernet 0/0
Internet(config-if)#ip add
Internet(config-if)#ip address 193.37.255.1 255.255.255.252
Internet(config-if)#no shut

Internet(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

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

Internet(config-if)#%DHCPD-4-PING: DHCP address:  server pinged 193.37.255.1.

Internet(config-if)#sh ip dhcp
Internet(config-if)#do sh ip inter
Internet(config-if)#do sh ip inter
Internet(config-if)#do sh ip inter b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     193.37.255.1    YES manual up                    up 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     unassigned      YES unset  administratively down down 
Serial0/0/0            unassigned      YES manual administratively down down 
Serial0/0/1            unassigned      YES unset  administratively down down 
Vlan1                  unassigned      YES unset  administratively down down
Internet(config-if)#

R1-NV#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to up

%DHCP-6-ADDRESS_ASSIGN: Interface GigabitEthernet0/2 assigned DHCP address 193.37.255.2, mask 255.255.255.252, hostname R1-NV


R1-NV#
R1-NV#sh ip inter
R1-NV#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES manual administratively down down 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     193.37.255.2    YES DHCP   up                    up 
FastEthernet0/0/0      unassigned      YES unset  up                    up 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Serial0/1/0            unassigned      YES manual down                  down 
Serial0/1/1            unassigned      YES unset  down                  down 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 10.16.0.1       YES manual up                    up 
Vlan20                 10.16.2.1       YES manual up                    up 
Vlan30                 10.16.4.1       YES manual up                    up 
Vlan40                 10.16.6.1       YES manual up                    up
R1-NV#wri
Building configuration...
[OK]
R1-NV#


Cisco es genial!.

No hay comentarios:

Publicar un comentario