LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Closed Thread
  Search this Thread
Old 02-20-2008, 05:09 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:26 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



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 to add virtual interface on fedora 8 zingerb Linux - Newbie 1 02-20-2008 05:34 AM
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

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

All times are GMT -5. The time now is 05:31 PM.

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