cisco_inter_vlan_routing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cisco_inter_vlan_routing [2024/01/20 22:59] – [IP Routing] walkeradmin | cisco_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 # | <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.1 255.255.255.0 |
end | end | ||
</ | </ | ||
Line 137: | Line 138: | ||
! | ! | ||
interface Vlan10 | interface Vlan10 | ||
- | ip address 192.168.1.254 255.255.255.0 | + | ip address 192.168.1.1 255.255.255.0 |
! | ! | ||
interface Vlan20 | interface Vlan20 | ||
- | ip address 10.43.30.254 255.255.255.0 | + | ip address 10.43.30.1 255.255.255.0 |
</ | </ | ||
Above we can now see that VLAN10 and VLAN20 have a <color # | Above we can now see that VLAN10 and VLAN20 have a <color # | ||
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 # | ||
< | < | ||
ping 192.168.1.38 | ping 192.168.1.38 | ||
Line 192: | Line 195: | ||
\\ | \\ | ||
\\ | \\ | ||
- | To enable IP Routing on the switch, we will use the following: | + | To enable |
\\ | \\ | ||
+ | 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: | ||
+ | < | ||
+ | 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 | ||
+ | |||
+ | | ||
+ | C | ||
+ | C 192.168.1.0/ | ||
+ | </ | ||
+ | \\ | ||
+ | We can see that the two <color # | ||
\\ | \\ | ||
- | <color #ed1c24>**** seems my switch doesn' | + | \\ |
+ | 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: | ||
+ | Reply from 10.43.30.100: | ||
+ | </file> | ||
+ | Now we can communicate with devices in VLAN 20 from VLAN 10. | ||
\\ | \\ | ||
\\ | \\ | ||
cisco_inter_vlan_routing.1705791559.txt.gz · Last modified: 2024/01/20 22:59 by walkeradmin