LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 interfaces in a one network card (https://www.linuxquestions.org/questions/linux-networking-3/2-interfaces-in-a-one-network-card-721992/)

efilnei 04-27-2009 09:00 AM

2 interfaces in a one network card
 
Hi, i'm configuring an LTSP server. I have to configure 2 interfaces of network (for example eth0 and eth1), eth0 to Internet and eth1 for the thin clients. Now i only have eth0 that i use for Internet

But i don't have idea how to configure another interface. I'm using Debian. I try to run:

ifconfig eth1 ip netmask

But this give me error "device doesn't exists"

Can anyone help please? Thx!

JoeBleaux 04-27-2009 10:13 AM

I THINK what you are asking how to do is to configure eth0:0 and eth0:1.

In Slackware, it's easy. I don't know about Debian.

Just Google "eth0:1 +Debian"

CarLost 04-27-2009 10:17 AM

Hi
You have already two NICs???
"ifconfig -a" say what!!!

If you have the two NICs... the right modules are loaded?? supported??

look for errors in ..... messages .... dmesg ..... kernel log's

regards.

CarLost 04-27-2009 10:20 AM

Quote:

Originally Posted by JoeBleaux (Post 3522504)
I THINK what you are asking how to do is to configure eth0:0 and eth0:1.

In Slackware, it's easy. I don't know about Debian.

Just Google "eth0:1 +Debian"


That's aliasing, to share 2 IP address in one NIC, not good if you try to "share" the same fisical of LAN (Internet+LAN)

efilnei 04-27-2009 10:45 AM

Hi. Sorry, my english is not very good, hehe

Now i'm not in house, i can't probe it. When i write "ifconfig" in a terminal shows 2 interfaces: "lo" and "eth0". I use eth0 to connect Internet. I need another interface for the thin clientss

Thanks a lot ;)

JoeBleaux 04-27-2009 10:50 AM

You have two options Efilnei-

1) Alias the one card to two intefraces as I said above.

2) Buy a second cheap card.

john test 04-28-2009 02:25 PM

Quote:

Originally Posted by efilnei (Post 3522430)
Hi, i'm configuring an LTSP server. I have to configure 2 interfaces of network (for example eth0 and eth1), eth0 to Internet and eth1 for the thin clients. Now i only have eth0 that i use for Internet

But i don't have idea how to configure another interface. I'm using Debian. I try to run:

ifconfig eth1 ip netmask

But this give me error "device doesn't exists"

Can anyone help please? Thx!

You need to buy a second Network Interface Card (NIC) to get an Eth1.


All times are GMT -5. The time now is 11:26 PM.