View previous topic :: View next topic |
Author |
Message |
YanViau n00b
Joined: 27 Jul 2006 Posts: 6
|
Posted: Thu Jul 27, 2006 1:18 pm Post subject: 3 different ip configuration |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54805 Location: 56N 3W
|
Posted: Thu Jul 27, 2006 1:55 pm Post subject: |
|
|
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 |
|
|
YanViau n00b
Joined: 27 Jul 2006 Posts: 6
|
Posted: Thu Jul 27, 2006 2:34 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54805 Location: 56N 3W
|
Posted: Thu Jul 27, 2006 5:13 pm Post subject: |
|
|
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 |
|
|
YanViau n00b
Joined: 27 Jul 2006 Posts: 6
|
Posted: Thu Jul 27, 2006 5:21 pm Post subject: |
|
|
I ping my server with a another distant computer ... and i can ping 2 interface with 1 network cable :S ... |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54805 Location: 56N 3W
|
Posted: Thu Jul 27, 2006 7:52 pm Post subject: |
|
|
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 |
|
|
|