This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linux box behind ASL ??

Hi !

I'm running a Linux Box and some Windows XP Workstation behind my ASL. The Windows XP Clients Work correctly and succeed to connect to the internet but from the Linux box i don't succeed.

both Windows XP and Linux are in network 192.168.0.0/24

I've made a packet filter rule so as to allow LAN NetWork (192.168.0.0/24) to go to the internet.

Why does my Linux Box doesn't access internet ?

Can someone help me. 

Thanks !


This thread was automatically locked due to age.
Parents Reply Children
  • Well that looks good.  Next follow Marcel 
    suggestion and make sure you can do a DNS resolve.
     
     [size="1"][ 12 December 2002, 14:24: Message edited by: tank ][/size]
  • I have had this problem before.  I found it to be a messed up ARP problem.

    After I manually entered the MAC address of the astaro box into my linux pc's everything worked.

    IF you display your arp table, you'll notice there is no entry for the Astaro Router.

    Faz
  • Hi !

    Here my ifconfig  [:)] 

    Thanks for Help

    [root@saturne root]# ifconfig
    eth0      Lien encap:Ethernet  HWaddr 00:01:02[:D]C:8C:2C
              inet adr:192.168.0.4  Bcast:192.168.0.255  Masque:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2851676 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1084406 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 lg file transmission:100
              RX bytes:200161118 (190.8 Mb)  TX bytes:211609771 (201.8 Mb)
              Interruption:5 Adresse de base:0xb000

    lo        Lien encap:Boucle locale
              inet adr:127.0.0.1  Masque:255.0.0.0
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:256 errors:0 dropped:0 overruns:0 frame:0
              TX packets:256 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 lg file transmission:0
              RX bytes:18864 (18.4 Kb)  TX bytes:18864 (18.4 Kb)

    [root@saturne root]#
  • how to include MAC Adress of the ASL in my Linux Box ? 

    Thanks
  • From the ARP ManPage:

    Arp -s is what you're looking for.. find the document here:
    http://www.google.ca/search?q=cache:3C_zdt866pMC:www.die.net/doc/linux/man/man8/arp.8.html+Adding+arp+entries+in+linux&hl=en&ie=UTF-8

    SYNOPSIS
           arp [-evn] [-H type] [-i if] -a [hostname]

           arp [-v] [-i if] -d hostname [pub]

           arp [-v] [-H type] [-i if] -s hostname hw_addr [temp]

           arp  [-v]  [-H  type] [-i if] -s hostname hw_addr [netmask
           nm] pub

           arp [-v] [-H type] [-i if] -Ds hostname ifa  [netmask  nm]
           pub

           arp [-vnD] [-H type] [-i if] -f [filename]

    DESCRIPTION
           Arp  manipulates  the  kernel's ARP cache in various ways.
           The primary options are clearing an address mapping  entry
           and  manually setting up one.  For debugging purposes, the
           arp program also allows a complete dump of the ARP  cache.

    OPTIONS
           -v, --verbose
                  Tell the user what is going on by being verbose.

           -n, --numeric
                  shows  numerical  addresses  instead  of  trying to
                  determine symbolic host, port or user names.

           -H type, --hw-type type, -t type
                  When  setting  or  reading  the  ARP  cache,   this
                  optional parameter tells arp which class of entries
                  it should check for.  The  default  value  of  this
                  parameter  is  ether  (i.e.  hardware code 0x01 for
                  IEEE 802.3 10Mbps Ethernet).   Other  values  might
                  include  network  technologies such as ARCnet (arc-
                  net) , PROnet (pronet) , AX.25 (ax25)  and  NET/ROM
                  (netrom).

           -a [hostname], --display [hostname]
                  Shows  the  entries of the specified hosts.  If the
                  hostname parameter is not used, all entries will be
                  displayed.  The entries will be displayed in alter-
                  nate (BSD) style.

           -d hostname, --delete hostname
                  Remove any entry for the specified host.  This  can
                  be  used if the indicated host is brought down, for
                  example.

           -D, --use-device
                  to which the IP datagrams will be routed.

           -s hostname hw_addr, --set hostname
                  Manually create an ARP address  mapping  entry  for
                  host  hostname with hardware address set to hw_addr
                  class, but for most classes one can assume that the
                  usual  presentation  can be used.  For the Ethernet
                  class, this is 6 bytes in hexadecimal, separated by
                  colons.  When  adding  proxy  arp  entries (that is
                  those with the publish flag set a  netmask  may  be
                  specified  to proxy arp for entire subnets. This is
                  not good practice, but is supported by  older  ker-
                  nels  because it can be useful. If the temp flag is
                  not supplied entries will be permanent stored  into
                  the ARP cache.
                  NOTE:  As  of kernel 2.2.0 it is no longer possible
                  to set an ARP entry for  an  entire  subnet.  Linux
                  instead  does  automagic  proxy  arp  when  a route
                  exists  and  it  is  forwarding.  See  arp(7)   for
                  details.

           -f filename, --file filename
                  Similar  to  the  -s  option,  only  this  time the
                  address info is taken from file  filename  set  up.
                  The   name   of   the   data  file  is  very  often
                  /etc/ethers, but this is not official. If no  file-
                  name is specified /etc/ethers is used as default.

                  The  format of the file is simple; it only contains
                  ASCII text lines with a hostname,  and  a  hardware
                  address  separated  by whitespace. Additionally the
                  pub, temp and netmask flags can be used.

           In all places where a hostname is expected, one  can  also
           enter an IP address in dotted-decimal notation.

           As a special case for compatibility the order of the host-
           name and the hardware address can be exchanged.

           Each complete entry in the ARP cache will be  marked  with
           the  C  flag. Permanent entries are marked with M and pub-
           lished entries have the P flag.

    FILES
           /proc/net/arp,
           /etc/networks
           /etc/hosts
           /etc/ethers
  • do a netstat -rn on your linux box, what does it give?
  • [root@saturne root]# netstat -rn
    Table de routage IP du noyau
    Destination     Passerelle      Genmask         Indic   MSS Fenêtre irtt Iface
    192.168.0.0     0.0.0.0         255.255.255.0   U        40 0          0 eth0
    127.0.0.0       0.0.0.0         255.0.0.0       U        40 0          0 lo
    0.0.0.0         192.168.0.1     0.0.0.0         UG       40 0          0 eth0
    [root@saturne root]#
  • @zoodoo

    Have you tried to ping an outside ip address instead of trying to do everything by hostname? 

    i.e. try pinging 18.7.21.69 and what do you get?
     
     [size="1"][ 23 December 2002, 07:43: Message edited by: ReD-MaN (Power ASL User) ][/size]