LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2008, 05:07 AM   #1
zingerb
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
problem to add virtual interface on fedora 8


Hi!

I have looked for this in very many forums but I didn't find something.

I have a problem to add virtual interface on fedora 8.
I've done installation of fedora 8 as server.
I have ip from dhcp server and after NAT.
So my ip address is 192.168.0.22.
Subnet mask 255.255.255.0 and default gateway is 192.168.0.254.
I need to create two virtual interfaces eth0:1 and eth0:2.
I have done the following things:

ifconfig eth0:1 192.168.0.101 netmask 255.255.255.0 up
ifconfig eth0:2 192.168.0.102 netmask 255.255.255.0 up

After " ifconfig -a "

I saw that I have new interfaces but when I'll try to add them to the kernel IP routing table I have some strange problem.

route add -net 192.168.0.0 netmask 255.255.255.0

Error : SIOCADDRT invalid argument

So I'd like to see after "route"
that I have in column Iface eth0:1 and etho:2
now I see only eth0.

Thank you very much for help.
 
Old 02-20-2008, 05:34 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You have successfully added the virtual interfaces, you are having trouble adding the network to the routing table.

http://handsonhowto.com/virt.html
Possibly missing out some of these steps caused some confusion.


route command error messages[pdf]

Quote:
Error : SIOCADDRT invalid argument
SIOCADDRT is an error message ADDing a RouTe.
"invalid argument" normally comes from missing something out. The line:
Quote:
route add -net 192.168.0.0 netmask 255.255.255.0
looks fine though. Is there anything else to the error message?
 
  


Reply


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
Problem Installing Fedora Core 3 on virtual machine nisha081 Linux - Laptop and Netbook 1 09-15-2006 02:12 PM
Virtual Interface montrhano Linux - Networking 0 08-28-2006 05:30 AM
virtual hosts problem - fedora core 4 john_f Fedora 1 04-04-2006 12:28 AM
How To Add user in Fedora Core 4 using the Command Line Interface regnox Linux - Newbie 9 08-22-2005 12:30 AM
Virtual Interface Limit mjakob Linux - Networking 0 11-27-2001 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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