User Tools

Site Tools


cisco_inter_vlan_routing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cisco_inter_vlan_routing [2024/01/20 22:59] – [Test Ping from Switch] walkeradmincisco_inter_vlan_routing [2024/01/21 13:36] (current) walkeradmin
Line 1: Line 1:
 ====== Cisco Inter VLAN Routing ====== ====== Cisco Inter VLAN Routing ======
 +==== aka Switch Virtual Interfaces (SVI) or Management Interface ====
 <color #db5f0b>Jan 2024</color> <color #db5f0b>Jan 2024</color>
 \\  \\ 
Line 124: Line 125:
 conf t conf t
 int vlan 10 int vlan 10
-ip address 192.168.1.254 255.255.255.0+ip address 192.168.1.255.255.255.0
 end end
 </file> </file>
Line 137: Line 138:
 ! !
 interface Vlan10 interface Vlan10
- ip address 192.168.1.254 255.255.255.0+ ip address 192.168.1.255.255.255.0
 ! !
 interface Vlan20 interface Vlan20
- ip address 10.43.30.254 255.255.255.0+ ip address 10.43.30.255.255.255.0
 </file> </file>
 Above we can now see that VLAN10 and VLAN20 have a <color #ed1c24>virtual interfaces</color> and also have IP Addresses associated with them. Above we can now see that VLAN10 and VLAN20 have a <color #ed1c24>virtual interfaces</color> and also have IP Addresses associated with them.
Line 149: Line 150:
 Now that we have two devices connected to our VLAN and each VLAN has an IP Address in each Subnet, we can Ping our two devices from the Switch Interface: Now that we have two devices connected to our VLAN and each VLAN has an IP Address in each Subnet, we can Ping our two devices from the Switch Interface:
 \\  \\ 
 +\\ 
 +<color #ed1c24>**** If you set the VLAN address for example to 192.168.1.1 then this must be the gateway on your device ****</color>
 <file> <file>
 ping 192.168.1.38 ping 192.168.1.38
Line 170: Line 173:
 ---- ----
 ==== IP Routing ==== ==== IP Routing ====
-\\  
 As a quick reminder, here is a diagram of the network we are using: As a quick reminder, here is a diagram of the network we are using:
 \\  \\ 
Line 193: Line 195:
 \\  \\ 
 \\  \\ 
-To enable IP Routing on the switch, we will use the following:+To enable <color #ed1c24>IP Routing</color> on the switch, we will use the following:
 \\  \\ 
 +  en
 +  conf t
 +  ip routing
 +  end
 +There is no text return from running this command.
 \\  \\ 
 \\  \\ 
 +No we can test to see the routes by using the following:
 +<file>
 +sh ip route
 +
 +Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
 +       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
 +       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
 +       E1 - OSPF external type 1, E2 - OSPF external type 2
 +       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
 +       ia - IS-IS inter area, * - candidate default, U - per-user static route
 +       o - ODR, P - periodic downloaded static route
 +
 +Gateway of last resort is not set
 +
 +     10.0.0.0/24 is subnetted, 1 subnets
 +C       10.43.30.0 is directly connected, Vlan20
 +C    192.168.1.0/24 is directly connected, Vlan10
 +</file>
 +\\
 +We can see that the two <color #ed1c24>interface VLANs</color> are shown (10.43.30.0 is directly connected, Vlan20 and 192.168.1.0/24 is directly connected, Vlan10).
 \\  \\ 
-<color #ed1c24>**** seems my switch doesn't support this..... please standby while I source another.. ****</color>+\\  
 +Now try to ping from Device A (192.168.1.38) to Device B (10.43.30.100). Remember, the gateway of Device A must be the IP Address of VLAN 10 (192.168.1.1 in this example). 
 +\\  
 +<file> 
 +Pinging 10.43.30.100 with 32 bytes of data: 
 +Reply from 10.43.30.100: bytes=32 time<1ms TTL=127 
 +Reply from 10.43.30.100: bytes=32 time=1ms TTL=127 
 +Reply from 10.43.30.100: bytes=32 time=1ms TTL=127 
 +Reply from 10.43.30.100: bytes=32 time<1ms TTL=127 
 +</file> 
 +Now we can communicate with devices in VLAN 20 from VLAN 10.
 \\  \\ 
 \\  \\ 
  
  
cisco_inter_vlan_routing.1705791543.txt.gz · Last modified: 2024/01/20 22:59 by walkeradmin