Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
3 different ip configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
YanViau
n00b
n00b


Joined: 27 Jul 2006
Posts: 6

PostPosted: Thu Jul 27, 2006 1:18 pm    Post subject: 3 different ip configuration Reply with quote

Hi,

I try to make a ez configuration on a P3 server, but it's doesnt work ... and i don't find anything about that on net.

I start my gentoo server without any ip configuration ... all of my network interface is empty ...

Login as root and type 3 ez command ...

ifconfig eth0 -inet 192.168.0.21 netmask 255.255.255.0
ifconfig eth1 -inet 192.168.0.22 netmask 255.255.255.0
route add default gw 192.168.0.1

When i run ifconfig command ... my 2 network interface have a single ip adress ... 0.21 eth0 and 0.22 eth1

it's work ... when i connect a network cable on my eth0 i can ping www.google.fr but when i ping my server with a another computer i can ping 0.21 and 0.22 and i only have 1 network cable on my gentoo server ( eth0 )

Why ?

I try the /conf.d/net with how to tuto but it's doiing the same thing ...

Thx - Yan Viau -
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Thu Jul 27, 2006 1:55 pm    Post subject: Reply with quote

YanViau,

Welcome to gentoo.

Please describe how your network is wired and what you want to do.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
YanViau
n00b
n00b


Joined: 27 Jul 2006
Posts: 6

PostPosted: Thu Jul 27, 2006 2:34 pm    Post subject: Reply with quote

I want to know why when I ping the IP of the NIC that doesn't have a cable plugged in the ping succeeds?

The cable is straight through, plugged in a switch.

Thanks!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Thu Jul 27, 2006 5:13 pm    Post subject: Reply with quote

YanViau,

The ping suceeds because the IP address is attached to the card inside your PC.
No network cable is required.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
YanViau
n00b
n00b


Joined: 27 Jul 2006
Posts: 6

PostPosted: Thu Jul 27, 2006 5:21 pm    Post subject: Reply with quote

I ping my server with a another distant computer ... and i can ping 2 interface with 1 network cable :S ...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Thu Jul 27, 2006 7:52 pm    Post subject: Reply with quote

YanViau,

Your kernel will have packet forwarding turned on.
Since you have allocated two IP addresses in the same subnet, your kernel will forward packets from one interface to another.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum