Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-24-2005, 06:27 AM   #1
LQ Newbie
Registered: Mar 2005
Location: holland
Posts: 2

Rep: Reputation: 0
how to connect a gateway linux with vlan ?

dear all

i have gateway on linux machine and i did create 2 vlan's on a cisco switch .
the 2 vlan's must get internet via gateway

how can i connect the gateway on linux to a switch?

what have i to do on the linux machine?


Last edited by ctis78; 03-25-2005 at 02:14 AM.
Old 03-25-2005, 07:13 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
If your wanting to setup your default gateway it would be something like this from the CLI:

route add default gw <ip-address-of-gateway>

But your actual question doesn't come off being really clear in what your trying to do exactly.
Old 03-25-2005, 07:28 AM   #3
LQ Newbie
Registered: Mar 2005
Location: holland
Posts: 2

Original Poster
Rep: Reputation: 0
dear trickykid

thanx for replaying

i have small LAN networking

i did creat 2 vlan's op manged switch . i do not like to use a router because it is small networking

totaly 22 workstations and i have 1 gateway machine running under linux.

the linux machine is a gateway machin voor internet.

my questions:

how can i provide internet accses via the gateway linux machine for the both vlan's?

have i to do somthing as setup under linux ?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is a gateway? can I have more than one gateway on a vlan? abefroman Linux - Networking 3 09-06-2005 10:43 AM
Linux VLAN Trunk? teamchachi Linux - Networking 1 07-28-2005 11:50 AM
intermittent failure winPC connect internet thru ipmasq linux gateway takahaya Linux - Networking 0 05-13-2005 06:35 PM
Linux for VLAN ? newbieA Linux - Networking 1 09-13-2003 11:34 AM
Linux VLAN Nework Card support glock19 Linux - General 1 06-04-2002 09:05 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration