LinuxQuestions.org
Review your favorite Linux distribution.
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 09-04-2006, 11:18 AM   #1
irving_wp
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
How do I configure a virtual interface in SuSe 9.1


OK, the thread subject said it all.

I actually have eth2 with a private IP and eth2:0 with a public IP. I need to do something like eth2:1 with another public IP. Of course, I would like this new interface to be activated on boot, as the others do.

Thanks in advance for your time and attention.

Regards,
IB
 
Old 09-04-2006, 02:54 PM   #2
drhart4000
Member
 
Registered: Aug 2006
Distribution: Centos, Fedora, Ubuntu, Slackware
Posts: 51

Rep: Reputation: 15
all you need to do is make a new file under /etc/sysconfig/network-scripts.
run this command:
vi /etc/ssconfig/network-scripts/ifcfg-eth2:1 -or- use your favorite editor

and put this information in:
---------------------
DEVICE=eth2:1
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.101
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
---------------------
be sure to chang the ip-range, broadcast, and network
if ip = 10.42.1.34 broadcast = 10.42.1.255, NETOWRK=10.42.1.0

Or if you want to use DHCP:
---------------------
DEVICE=eth2:1
BOOTPROTO=dynamic
ONBOOT=yes
---------------------

then you must restart the network with the command:
/etc/init.d/network restart

then run:
ifconfig eth2:1
to be sure all went well

Last edited by drhart4000; 09-04-2006 at 11:03 PM.
 
  


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
Virtual Interface montrhano Linux - Networking 0 08-28-2006 05:30 AM
How define virtual network interface in Suse 9.3 ? tkmbe SUSE / openSUSE 0 08-08-2005 04:21 PM
SuSE 9.2 - apache2 & tomcat5 - how to configure VIRTUAL HOSTS & JSP? nicolasdiogo Linux - Networking 2 03-20-2005 08:06 AM
virtual interface eth0:0 irfanasim Linux - General 2 10-11-2002 11:58 AM
Virtual Interface Limit mjakob Linux - Networking 0 11-27-2001 07:14 AM

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

All times are GMT -5. The time now is 04:21 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