You have some problem with your routing table. Try these commands and add
it into /etc/rc.d/rc.local script.

[EMAIL PROTECTED]   root]# ifconfig eth0 local_ip netmask 255.255.???.???
[EMAIL PROTECTED]   root]# ifconfig eth1 public_ip netmask 255.255.???.???

This will bind the IP addres to their respective NICs.

[EMAIL PROTECTED]  root]# route add -net  local_net  gw 192.168.247.246
netmask 255.255.???.???
[EMAIL PROTECTED]  root]# route add -net  public_net  gw 192.168.247.246
netmask 255.255.???.???

These commands will add routes for those addresses using their respective
network.

Hope it works. God bless.

Have a nice day!

---->
Al Maclang
--------------||-+------)(-+------------------
Alberto D. Maclang, CCNA
Senior Network Engineer
NSG Philippines, Inc.
Tel: +6349-5412730 to 32 loc 230
--------------)(+----------||+---------------




                                                                                       
                         
                    "Fritz Mesedilla"                                                  
                         
                    <[EMAIL PROTECTED]        To:     "PLUG Mailing List (E-mail)"     
                  
                    media.com>                       <[EMAIL PROTECTED]>               
                    
                    Sent by:                         cc:                               
                         
                    [EMAIL PROTECTED]        Subject:     [plug] network interfaces    
                 
                    x.com                                                              
                         
                                                                                       
                         
                                                                                       
                         
                    10/16/2003 05:13 PM                                                
                         
                    Please respond to                                                  
                         
                    Philippine Linux Users                                             
                         
                    Group Mailing List                                                 
                         
                                                                                       
                         
                                                                                       
                         





Hello friends!
I seem to have a weird problem... I have installed a 2nd network card on
one of our servers and it doesn't seem to work properly.

IF
eth0 - local ip, NO external/public ip
eth1 - local AND external/public ip
IT WORKS

IF
eth0 - local AND external/public ip
eth1 - local ip, NO external/public ip
DOES NOT WORK

eth0 is built-in with the motherboard
eth1 is 3com 3c59x PCI

Why is this happening?

route produces this...
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.0.0     *               255.255.0.0     U     0      0        0
eth1
192.168.0.0     *               255.255.0.0     U     0      0        0
eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.247.246 0.0.0.0         UG    0      0        0
eth1

eth0 doesn't appear but it works.

I know some would say it works why consider it a problem. Well, I'm not
sure it really works as expected so it might produce problems later.

Sana matulungan niyo ako. I plan to use it for iptables sana eh. Thanks.



fritz <www.mesedilla.com>
---
+ Basta Ikaw Lord


----------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender immediately by e-mail and delete this e-mail from your
system. Please note that any views or opinions presented in this
email are solely those of the author and do not necessarily represent
those of the company. Finally, the recipient should check this email
and any attachments for the presence of viruses. The company accepts
no liability for any damage caused by any virus transmitted by this
email.

Overture Media, Inc.
Direct Line: (632) 635-4785
Trunkline:   (632) 631-8971 Local 146
Fax: (632) 637-2206
Level 1 Summit Media Offices, Robinsons Galleria EDSA Cor. Ortigas Ave.,
Quezon City 1100

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie




--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to