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

Notices


Reply
  Search this Thread
Old 12-06-2007, 02:24 PM   #1
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
vlan - multiple ip -same nic


Hello and mtia.

If I have a vlan setup on eth2.4 for example and I have already assigned an ip address. How could I assign an additional ip to this vlan interface.

Code:
DEVICE=eth2.4
BOOTPROTO=static
HWADDR=X:X:X:x:x:X
ONBOOT=yes
TYPE=Ethernet
IPADDR=172.13.4.1
BROADCAST=172.13.4.255
NETMASK=255.255.255.0
USERCTL=no
IPV6INIT=no
PEERDNS=yes
VLAN=yes
For example what if I wanted to add 10.10.0.219 / 24

Again thank you.

Last edited by lord-fu; 12-06-2007 at 07:17 PM.
 
Old 12-06-2007, 03:20 PM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Original Poster
Rep: Reputation: 30
Well it was easier than I thought it should have been. I copied the ifcfg-eth2.4 file to ifcfg-eth2.4:1 and made changes and it worked fine. Let me know if I am wrong, but everything works like it should so far.
 
  


Reply



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
Multiple interfaces in one VLAN Fund-A-Mental Linux - Networking 1 03-06-2007 07:44 AM
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 02:51 AM
Multiple VLAN issue with Atheros Wireless steve_f60 Linux - Wireless Networking 0 11-30-2005 02:50 PM
Wireless Atheros Card in Multiple VLAN Issues steve_f60 Linux - Wireless Networking 0 11-30-2005 10:00 AM
Multiple IP on on NIC aceexpert Linux - General 3 05-28-2002 05:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:43 AM.

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