Share your knowledge at the LQ Wiki.
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 04-30-2006, 12:17 PM   #1
LQ Newbie
Registered: Apr 2006
Location: California
Distribution: Red Hat
Posts: 1

Rep: Reputation: 0
Routing on a single Interface

I'm fairly new to Linux as my question will probably reveal. I have a single ethernet port on desktop and am running Fedora Core 4. I've configured the single ethernet port with a subinterface and have assigned that subinterface with an IP address. The eth0 interface has IP address and the eth0:1 interface has There should be no problem routing between these two correct?

I want to find out if routing between two networks on the same ethenet interface is possible but have not figured out how to do it. I thought enabling IP forwarding would do the trick. My routing table contains both networks, but it still doesn't work. Any ideas?

Last edited by bernard7; 04-30-2006 at 12:20 PM.
Old 05-01-2006, 11:34 AM   #2
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I am not sure if it is possible either...

My routing table contains both networks
But does it have the two hosts?
Can you show output of 'route'?
Old 05-01-2006, 05:06 PM   #3
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not sure if one can use ip forwarding on Alias IP's like you setup. I know the IPtables does not understand eth0:1. So one must use the IP address and not use the reference of eth0:1 in thier iptable scripts.

One thought is on the eth0:1 network is not to assign a gateway. Just define the IP and subnet. This is the way I setup 2 or more nics in a machine. The first nic has IP, Subnet, Gateway, DNS defined. Second and others are just IP and Subnet. Let IP forward define the routing from there.



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
problems routing with single NIC bravo_veinticinco Linux - Networking 1 12-16-2005 04:30 AM
VPN single interface card kloppster Linux - Networking 0 10-13-2004 07:46 PM
multiple ip address for single eth interface blackhound Linux - Networking 2 02-25-2004 07:02 AM
Dual IP on a single interface darkknight_9 Linux - Networking 1 11-24-2003 08:45 PM
X11 server to listen on single configured interface kailesmith Linux - Networking 0 08-09-2003 06:05 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:24 AM.

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