Hello all.
I have a linux redhat 9.0 with 3 Lan Cards, eth0, eth1, eth2.
I want to use the Redhat 9.0 as a router for my other two PCs (Both are Win Xp Pros).
I am using the eth0 (or is it ppp0?) to connect to ADSL, using eth1 for 1 windows xp and eth2 for the other windows XP system. Each windows XP is connect to a seperate Lan Card.
I have been asking around and people tell me to use the DHCP server. I downloaded the dhcp-3.0.1 version and installed it. I have configured the dhcpd.conf and started the server.
Here is the dhcpd.conf
Code:
ddns-update-style ad-hoc;
# Thong
subnet 192.168.0.0 netmask 255.255.255.0 {
host Andre {
hardware ethernet 00:50:FC:99:20:C8;
fixed-address 192.168.0.3;
option broadcast-address 192.168.0.255;;
}
host Julian {
hardware ethernet 00:c0:DF:0A:D2:C9;
fixed-address 192.168.0.2;
option broadcast-address 192.168.0.255;
}
range 192.168.0.30 192.168.0.50;
}
After configuring the dhcp.conf, i tried to ifup oth eth1 and eth2.
It doens't seem to work. This message appears
Code:
Determing IP information for eth1... failed; no link present. Check Cable?
Determing IP information for eth2... failed; no link present. Check Cable?
So i tried assigning Static IP Addresses to eth1 and eth2 using the Redhat Network setting interface (i dot know how to do it otherwise
)
Code:
For eth1 its:
Address: 192.168.0.2
Netmask: 255.255.255.0
Gateway:192.168.0.1 (i am not sure about this, just guessing)
For eth2 its:
Address: 192.168.0.3
Netmask:255.255.255.0
Gateway:192.168.0.1 (again, i am not sure about this, just plainly guessing :D)
I didn't configure the eth0. "The default is Automatically obtain IP addresses setting with DHCP".
I rebooted my redhat 9.0 and started the DHCP server.
When i plug the cable from each of the Win Xp systems into eth1 and eth2, on both Win Xp Systems, it says that there is no link. And on the Redhat 9.0, the light for each of the LAN Cards aren't on.
The Windows XP systems are connected to the Redhat 9.0 Directly. Not Hub switch in between, Lan Card to Lan Card.
The cables used to connect Win Xp to Redhat 9.0 are the same cables i used to connect to my old router (the ones you get for $60 USD).
Might this be because i am not using a network hub/ switch and different cables have to be used? Or does it have to do with the setting on my RedHat 9.0
?
All Lan cards, eth0, eth1, eth2 have been tested and they all work.
Here is my host file in case its any useful
Code:
#Do not remove the following line, or various programs
#that require network functionality will fail.
127.0.0.1 BMX.localdomain localhost
255.255.255.255 all-ones all-ones