- Community Home
- >
- Networking
- >
- Legacy
- >
- Switches, Hubs, Modems
- >
- L3 routing
Switches, Hubs, and Modems
1752631
Members
5535
Online
108788
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 12:14 AM
07-17-2007 12:14 AM
I have two HP L3 switches, that need to act as gateway of the internal network to two different external networks.
The internal network belongs to a single vlan (VLAN 1), so the traffic will be routed based on the packets' destination networks.
For example
external network #1 = 172.30.1.0/24
external network #2 = 192.168.1.0/24.
Let's also assume that the router interfaces connected to the switches are 172.30.1.1/24 and 192.168.1.1/24.
the two switches will have VLAN1 ip addresses
SW1: *.*.*.1/24 and
SW2: *.*.*.2/24,
where *.*.*.0/24 is the internal network's address.
The other Router will connect to Switch1 and the other to Switch2
What are the needed configurations on the L3 switches to handle routing to the external networks?
I know it's something like this but I need some help:
ip routing
ip route 172.30.1.0 0.0.0.255 172.30.1.1
ip route 192.168.1.0 0.0.0.255 192.168.1.1
Do I need to add an additional ip address to both switches, so that they can connect to the Routers?
The internal network belongs to a single vlan (VLAN 1), so the traffic will be routed based on the packets' destination networks.
For example
external network #1 = 172.30.1.0/24
external network #2 = 192.168.1.0/24.
Let's also assume that the router interfaces connected to the switches are 172.30.1.1/24 and 192.168.1.1/24.
the two switches will have VLAN1 ip addresses
SW1: *.*.*.1/24 and
SW2: *.*.*.2/24,
where *.*.*.0/24 is the internal network's address.
The other Router will connect to Switch1 and the other to Switch2
What are the needed configurations on the L3 switches to handle routing to the external networks?
I know it's something like this but I need some help:
ip routing
ip route 172.30.1.0 0.0.0.255 172.30.1.1
ip route 192.168.1.0 0.0.0.255 192.168.1.1
Do I need to add an additional ip address to both switches, so that they can connect to the Routers?
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 09:49 AM
07-17-2007 09:49 AM
Solution
First, on each switch you will have to add a new VLAN; the only port that needs to be a member of this vlan is the link to the external router. The value of the VLAN ID is not relevant, becaue it won't be seen outside of the switch.
Second, you need to give the switches an IP address on these new VLANs for their respective external networks:
SW1: 172.30.1.2
SW2: 192.168.1.2
Now, as soon as you add the IP address in the VLAN, the switch will know that it has a local direct route to that network. But you will need to add that network into the other switches config:
SW1:
ip route 192.168.1.0 0.0.0.255 *.*.*.2
SW2:
ip route 172.30.1.0 0.0.0.255 *.*.*.1
Your L3 switches can now route out to the external networks, but this is only half the battle. You will also need to add routes on the external networks' routers so they can get packets back to you. So,
RTR 1:
ip route *.*.*.0 0.0.0.255 172.30.1.2
RTR 2:
ip route *.*.*.0 0.0.0.255 192.168.1.2
This should get you going.
Second, you need to give the switches an IP address on these new VLANs for their respective external networks:
SW1: 172.30.1.2
SW2: 192.168.1.2
Now, as soon as you add the IP address in the VLAN, the switch will know that it has a local direct route to that network. But you will need to add that network into the other switches config:
SW1:
ip route 192.168.1.0 0.0.0.255 *.*.*.2
SW2:
ip route 172.30.1.0 0.0.0.255 *.*.*.1
Your L3 switches can now route out to the external networks, but this is only half the battle. You will also need to add routes on the external networks' routers so they can get packets back to you. So,
RTR 1:
ip route *.*.*.0 0.0.0.255 172.30.1.2
RTR 2:
ip route *.*.*.0 0.0.0.255 192.168.1.2
This should get you going.
Trust me, I know what I'm doing
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP