- Community Home
- >
- Networking
- >
- Legacy
- >
- Communications and Wireless
- >
- Re: VLANS + ROUTER
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
Discussion Boards
Community
Resources
Forums
Blogs
- 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
11-03-2008 05:14 PM
11-03-2008 05:14 PM
VLANS + ROUTER
I have 3 Vlans configured already at my 3COM switch:
VLAN1 - 192.168.1.x
VALN2 - 192.168.168.x
VLAN3 - 10.0.0.x
I have single DSL modem:
DSL - 192.168.70.1
Now I need to build a router/firewall with Linux box.
The router should make all Vlan's be able to see the internet and AD Windows Server (192.168.70.4).
The client's machines are PC with Windows XP.
I don't know much about vlaning on Linux - could you please provide some ideas on how to sort it out ?
Some Linux commands I have to run on the box in order to route the traffic to the internet and Windows Server?
The network looks somewhat like this:
[INTERNET]
|
[DSL]
|
[ROUTER/FIREWALL]
|
[SWITCH]
|
[VLAN1] [VLAN2] [VLAN3]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 12:59 AM
11-05-2008 12:59 AM
Re: VLANS + ROUTER
First you need to configure the system to communicate to all vlans.
So if you have only one physical interface, you need to create subinterfaces for each vlan. Give each subinterface an ip-adress in its own vlan.
http://www.cyberciti.biz/tips/howto-configure-linux-virtual-local-area-network-vlan.html
And configure the switch to forward packets from all vlan's to the linux box.
If you have multiple NIC's configure each with an ip-adress in its own vlan. and connect it to a switchport in the respective vlan.
Maybe you need to configure a DHCP server for each sbnet ?
http://www.yolinux.com/TUTORIALS/DHCP-Server.html
Then you can configure the firewall to forward packets from each subnet to the internet. How to do this will depend on the firewall package used.
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 06:18 AM
11-05-2008 06:18 AM
Re: VLANS + ROUTER
What I don't get is - how come the VLAN's will talk to the gateway when the gateway is of different IP range.
Can yo uexplain that ?
Regards
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 07:39 AM
11-05-2008 07:39 AM
Re: VLANS + ROUTER
vlans don't communicate with a gateway.
nodes with interfaces in a vlan communicate with other interfaces in the same vlan.
(layer-2 of the layered netwok design)
an interface with an ip-adress communicates with other adresses in the same subnet.
(layer-3 of the layered netwok design).
so you need something in the communication between the router/firewall and the switch for the switch to determine what vlan to send to.
this is done with a special field in the network-packet : a vlan-tag.
by creating subinterfaces on the router, it will use this vlan-tag in its packets to the switch.
The switch must be configured to accept these packets, recognize the vlan-tag and forward to the right vlan (and back offcourse). This is done by configuring this port as a vlan-trunk. so it will send all packets with vlan-tag to the router.
Now only level-2 is done.
Second the interface on the router must be configured with an ip-adress in the right subnet for the vlan. so it can communicate with use of the tcp/ip protocol to other hosts.
Third offcourse the router must route between these subnets (connect the subnets on layer-3).
And fourth the router/firewall must selectively send packets to and from the DLS using another interface with a correct ip-adress for that subnet (192.168.70.x).
this is networking in a nutshell
hope this clarifies?
Pieter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 04:00 PM
12-22-2008 04:00 PM
Re: VLANS + ROUTER
So how do I configure my network cards ?
Can you give an example?
Regards
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 11:34 PM
12-22-2008 11:34 PM
Re: VLANS + ROUTER
http://www.cyberciti.biz/tips/howto-configure-linux-virtual-local-area-network-vlan.html