Thanks for all your help. OK, let me describe this in more detail:
I installed Redhat 9.0, but my pc is new and the linux does not have
the driver for the embeded nics. Then I downloaded from intel website
and installed it followed by the instrcution. I first installed all
those in my cubic, that is why I have to use DHCP, and it works fine.
Then I moved it into lab since it will be my new server. In the lab, I
have to use static IP because of our lab gateway does not enable dhcp.
below is my configuraton:
eth0: 10.43.52.137, mask: 255.255.255.0, default gateway: 10.43.52.1
eth1: 192.168.255.2 mask 255.255.255.0
After I enable these two nics, I could reach any host belong to these
two subnets, like 10.43.52.1 and 192.168.255.1, but if I want to reach
other pc like 10.10.10.100, then it always fail. I notice another
problem, which is strange too, if disable any of this two cards, the
other one will also stop working. why it is that? Maybe it is related
this issue too. As you suggested, I did check route -n, the default
gateway is there.
hope it is clear enough for you to do further investigation.
thanks.
/zhenwu
Unruh wrote:
> (E-Mail Removed) writes:
>
>
> >Hi,
>
> >I just installed a linux box with two embeded intel 1000/CT nic cards,
>
> No. You installed some specific version of Linux. Which was it.
>
> >I first enabled DHCP and everything looks fine. then I moved it into
> If you are going to assign static IPs why in the world do you enable dhcp?
>
> >lab and I have to change to static IP configuration. I assigned static
> >IP and default gateway on one of the nic and staic IP only on another
>
> Yes, a computer can have only one default route.
>
>
> >nic card. Then I can ping through hosts in these two subnets. but if I
> >want to cross these two subnets, it will fail. after I further
>
> No idea what you mean? If your computer is supposed to be the gateway, you
> need to set it up as such. Tell us what you want to do in more detail.
>
> >troubleshooting, I found the default gateway config is not taking
> >effect even though it is in the config file located at
> >/etc/sysconfiguration/networking/devices/ifcfg_eth0. Also, if I ust
>
> What is the output of
> route -n
>
> >route add default gateway x.x.x.x dev eth0, it will say it is already
> >in the config file. anyone knows what is going on here?
>
> No idea what this is talking about. That error message is NOT an error
> message from route. Please quote error messages EXACTLY, via cut and paste
> prefereably.