Find the answer to your Linux question:
Results 1 to 9 of 9
Hi all, I am connected to a LAN by my isp, I dont know the exact topography of my LAN but heres my IPCONFIG output on windows XP: Microsoft Windows ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    5

    Static IP / Routing table problem


    Hi all,
    I am connected to a LAN by my isp,
    I dont know the exact topography of my LAN but heres my IPCONFIG output on windows XP:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Documents and Settings\devashish>ipconfig /all

    Windows IP Configuration

    Host Name . . . . . . . . . . . . : Home-PC
    Primary Dns Suffix . . . . . . . :
    Node Type . . . . . . . . . . . . : Unknown
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No

    Ethernet adapter Local Area Connection:

    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethe
    rnet NIC
    Physical Address. . . . . . . . . : 00-0D-87-11-82-5F
    Dhcp Enabled. . . . . . . . . . . : No
    IP Address. . . . . . . . . . . . : 10.1.77.141
    Subnet Mask . . . . . . . . . . . : 255.255.255.240
    Default Gateway . . . . . . . . . : 10.1.77.1
    DNS Servers . . . . . . . . . . . : 192.168.222.5

    C:\Documents and Settings\devashish>

    Now when I give the same setup in my linux (KNOPPIX and UBUNTU both) I cannot ping my gateway, following is my routing table in linux

    knoppix@Knoppix:~$ route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.1.77.128 0.0.0.0 255.255.255.240 U 0 0 0 eth0

    and this is my windows routing table:

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Documents and Settings\devashish>route PRINT
    ================================================== =========================
    Interface List
    0x1 ........................... MS TCP Loopback interface
    0x2 ...00 0d 87 11 82 5f ...... Realtek RTL8139 Family PCI Fast Ethernet NIC - P
    acket Scheduler Miniport
    ================================================== =========================
    ================================================== =========================
    Active Routes:
    Network Destination Netmask Gateway Interface Metric
    0.0.0.0 0.0.0.0 10.1.77.1 10.1.77.141 20
    10.1.77.128 255.255.255.240 10.1.77.141 10.1.77.141 20
    10.1.77.141 255.255.255.255 127.0.0.1 127.0.0.1 20
    10.255.255.255 255.255.255.255 10.1.77.141 10.1.77.141 20
    127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
    224.0.0.0 240.0.0.0 10.1.77.141 10.1.77.141 20
    255.255.255.255 255.255.255.255 10.1.77.141 10.1.77.141 1
    Default Gateway: 10.1.77.1
    ================================================== =========================
    Persistent Routes:
    None

    How can I setup my linux routing table to match my windows routing table. PLEASE PLEASE HELP THIS HELPLESS FEMALE

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Quote Originally Posted by devashish View Post
    Now when I give the same setup in my linux (KNOPPIX and UBUNTU both) I cannot ping my gateway, following is my routing table in linux

    knoppix@Knoppix:~$ route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.1.77.128 0.0.0.0 255.255.255.240 U 0 0 0 eth0
    The Windows box reports your default gateway as 10.1.77.1. You don't have any entry for it in your routing table.

    It's possible to add this dynamically via the route command, e.g.:
    # route add default gw 10.1.77.1

    But that's not going to survive a reboot. You're going to need to figure out whatever pretty GUI tool that ubuntu uses to specify a default gateway and add it there.

  3. #3
    Just Joined!
    Join Date
    Jun 2007
    Posts
    5
    Thank you for the reply, I treid what you suggest, I get a message that says that connection not available. I also tried the following:
    route add -inet 912.168.222.0 netmask 255.255.255.240 gw 10.1.77.141 dev eth0

    after this when i try ping 192.168.222.5 (which is the dns)
    I get replies from 10.1.77.1 saying that it can't go through but i still can't ping 10.1.77.1 I get the same no connect msg ...... could it be a firewall? I am using knoppix hd install

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    I don't want to discourage you, but I've read that the Knoppix hard drive install is flaky. (Not to take anything away from Knoppix itself; the live cd is excellent.) Maybe you could look at some other options for a permanent installation. You mentioned ubuntu earlier -- why not start with that?

    It sounds like you might not even have an IP address bound to your nic.

    The command:
    # ifconfig
    will confirm that one way or another.

  6. #5
    Just Joined!
    Join Date
    Jun 2007
    Posts
    5
    Thank you for you suggestion, however I have the same problem with Ubuntu, when I first start it up I get the message you are connected to a .local network, and I dont know what that means. The following is the output of one of the programs I used to collect my connection details, I think I will crack it, coz i have an engineer helping me

    collectNWData.sh V0.4.5
    --- What's the type of networktopology?
    --- (1) DSL modem <---> LinuxClient
    --- On which host is the script executed?
    --- (1) LinuxClient
    !!! The system can't ping an external IP address.
    >>> Set a default gateway on your system
    !!! The system can't resolve an external DNS name.
    >>> Check the nameserver definition in /etc/resolv.conf
    ================================================== ================================================
    ================================================== ================================================
    *** uname -a
    Linux Knoppix 2.6.19 #7 SMP PREEMPT Sun Dec 17 22:01:07 CET 2006 i686 GNU/Linux
    ================================================== ================================================
    *** cat /etc/SuSE-release
    cat: /etc/SuSE-release: No such file or directory
    ================================================== ================================================
    *** cat /etc/resolv.conf | grep -v "^#" | grep -v "^$"
    nameserver 192.168.0.1
    ================================================== ================================================
    *** cat /etc/hosts | grep -v "^#" | grep -v "^$" | grep -v "::"
    127.0.0.1 localhost Knoppix
    ================================================== ================================================
    *** cat /proc/sys/net/ipv4/ip_forward
    0
    ================================================== ================================================
    *** /sbin/iptables -t nat -L
    Chain PREROUTING (policy ACCEPT)
    target prot opt source destination

    Chain POSTROUTING (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    ================================================== ================================================
    *** /sbin/route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.1.77.128 0.0.0.0 255.255.255.240 U 0 0 0 eth0
    ================================================== ================================================
    *** /usr/sbin/arp -n
    ================================================== ================================================
    *** /sbin/ifconfig
    eth0 Link encap:Ethernet HWaddr 00:0D:87:11:82:5F
    inet addr:10.1.77.141 Bcast:10.1.77.255 Mask:255.255.255.240
    inet6 addr: fe80::20d:87ff:fe11:825f/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:275 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:30181 (29.4 KiB) TX bytes:810 (810.0 b)
    Interrupt:21

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:2 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)

    ================================================== ================================================
    *** pingTests
    10.1.77.141 : Ping OK
    127.0.0.1 : Ping OK
    connect: Network is unreachable
    195.135.220.3 : No ping response
    ping: unknown host Linux-Betriebssysteme: SUSE Linux Enterprise
    Linux-Betriebssysteme: SUSE Linux Enterprise : No ping response
    ================================================== ================================================
    *** /sbin/lspci
    00:00.0 Host bridge: Silicon Integrated Systems [SiS] 651 Host (rev 02)
    00:01.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-to-PCI bridge (AGP)
    00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS962 [MuTIOL Media IO] (rev 14)
    00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller
    00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]
    00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] AC'97 Sound Controller (rev a0)
    00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
    00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
    00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
    00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
    00:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
    00:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
    00:0b.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
    00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
    01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
    ================================================== ================================================
    *** /usr/sbin/lsusb
    Bus 004 Device 002: ID 058f:6390 Alcor Micro Corp.
    Bus 004 Device 001: ID 0000:0000
    Bus 003 Device 001: ID 0000:0000
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 001: ID 0000:0000
    ================================================== ================================================
    *** /sbin/lsmod
    Module Size Used by
    iptable_nat 11140 0
    ip_nat 22444 1 iptable_nat
    ip_conntrack 56376 2 iptable_nat,ip_nat
    nfnetlink 10776 2 ip_nat,ip_conntrack
    ip_tables 18500 1 iptable_nat
    x_tables 19460 2 iptable_nat,ip_tables
    ipv6 279616 10
    sworks_agp 13472 0
    intel_agp 27420 0
    efficeon_agp 12192 0
    amd64_agp 16772 0
    ali_agp 11136 0
    ppdev 13188 0
    lp 16776 0
    af_packet 29960 0
    parport_pc 43492 1
    parport 40008 3 ppdev,lp,parport_pc
    usb_storage 73408 0
    8250_pnp 13440 0
    8250 28164 1 8250_pnp
    serial_core 25216 1 8250
    libusual 20624 1 usb_storage
    snd_intel8x0 37020 0
    snd_ac97_codec 97188 1 snd_intel8x0
    snd_ac97_bus 6528 1 snd_ac97_codec
    snd_pcm_oss 45728 0
    snd_mixer_oss 20224 1 snd_pcm_oss
    snd_pcm 80004 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
    snd_timer 26500 1 snd_pcm
    bt878 15304 0
    snd 55396 6 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_ oss,snd_pcm,snd_timer
    bttv 176692 1 bt878
    video_buf 28932 1 bttv
    ir_common 33668 1 bttv
    compat_ioctl32 5504 1 bttv
    i2c_algo_bit 12296 1 bttv
    btcx_risc 8968 1 bttv
    tveeprom 19088 1 bttv
    videodev 29824 1 bttv
    v4l1_compat 18052 1 videodev
    v4l2_common 26752 2 bttv,videodev
    soundcore 12512 1 snd
    snd_page_alloc 13960 2 snd_intel8x0,snd_pcm
    i2c_sis96x 9860 0
    shpchp 41380 0
    pci_hotplug 36424 1 shpchp
    sis_agp 12676 1
    agpgart 36044 6 sworks_agp,intel_agp,efficeon_agp,amd64_agp,ali_ag p,sis_agp
    tsdev 11840 0
    evdev 14208 1
    ohci1394 38960 0
    ieee1394 300760 1 ohci1394
    usbhid 56928 0
    ff_memless 9992 1 usbhid
    uhci_hcd 27788 0
    pcmcia 41132 0
    firmware_class 14208 2 bttv,pcmcia
    yenta_socket 30220 0
    rsrc_nonstatic 17408 1 yenta_socket
    pcmcia_core 43800 3 pcmcia,yenta_socket,rsrc_nonstatic
    cpufreq_ondemand 12300 1
    p4_clockmod 10116 0
    speedstep_lib 8836 1 p4_clockmod
    freq_table 9088 2 cpufreq_ondemand,p4_clockmod
    video 19460 0
    sbs 18856 0
    i2c_ec 9216 1 sbs
    i2c_core 25984 5 bttv,i2c_algo_bit,tveeprom,i2c_sis96x,i2c_ec
    container 8576 0
    button 10768 0
    battery 14084 0
    ac 9348 0
    dm_snapshot 21672 0
    raid10 29568 0
    raid456 128272 0
    xor 19592 1 raid456
    raid1 28544 0
    raid0 12800 0
    multipath 13440 0
    linear 10624 0
    md_mod 81044 6 raid10,raid456,raid1,raid0,multipath,linear
    dm_mirror 26448 0
    dm_mod 60440 2 dm_snapshot,dm_mirror
    8139too 31104 0
    mii 9728 1 8139too
    ehci_hcd 35848 0
    ohci_hcd 24580 0
    usbcore 135812 7 usb_storage,libusual,usbhid,uhci_hcd,ehci_hcd,ohci _hcd
    thermal 17928 0
    processor 36200 1 thermal
    fan 8836 0
    ================================================== ================================================
    *** /sbin/iptables -L -vn
    Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts bytes target prot opt in out source destination

    Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
    pkts bytes target prot opt in out source destination

    Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts bytes target prot opt in out source destination
    ================================================== ================================================
    *** cat /etc/sysconfig/SuSEfirewall2 | grep -v "^#" | grep -v "^$"
    cat: /etc/sysconfig/SuSEfirewall2: No such file or directory
    ================================================== ================================================
    *** cat /etc/sysconfig/network/config | grep -v "^#" | grep -v "^$"
    cat: /etc/sysconfig/network/config: No such file or directory
    ================================================== ================================================
    *** cat /etc/sysconfig/sysctl | grep -v "^#" | grep -v "^$"
    cat: /etc/sysconfig/sysctl: No such file or directory
    ================================================== ================================================
    *** cat /etc/sysconfig/network/dhcp | grep -v "^#" | grep -v "^$"
    cat: /etc/sysconfig/network/dhcp: No such file or directory
    ================================================== ================================================
    *** cat /etc/sysconfig/proxy | grep -v "^#" | grep -v "^$"
    cat: /etc/sysconfig/proxy: No such file or directory
    ================================================== ================================================
    *** cat /etc/sysconfig/ssh | grep -v "^#" | grep -v "^$"
    cat: /etc/sysconfig/ssh: No such file or directory
    ================================================== ================================================
    *** /sbin/iwconfig | /bin/sed "s/\(Encryption key:\)\([^o][^f][^f][^ ]*\)\(.*\)/\1xx xxx-xxxx-xxxx-xxxx-xxxx-xxxxxxx\3/"
    lo no wireless extensions.

    eth0 no wireless extensions.

    ================================================== ================================================
    *** catMyConfig
    ls: /etc/sysconfig/network/ifcfg-*: No such file or directory

  7. #6
    Just Joined!
    Join Date
    Jun 2007
    Posts
    5
    hi,
    I finally solved the problem, I had to do:
    route add -net 10.1.77.0 netmask 255.255.255.240 gw 10.1.77.141

  8. #7
    Linux Newbie framp's Avatar
    Join Date
    Jul 2006
    Location
    Stuttgart, Germany
    Posts
    240
    Quote Originally Posted by devashish View Post
    hi,
    I finally solved the problem, I had to do:
    route add -net 10.1.77.0 netmask 255.255.255.240 gw 10.1.77.141
    That's a common config error - missing default gateway - and was detected by the script. Did the message of the script helped you to find the root of the problem?
    "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." Linus Benedict Torvalds

  9. #8
    Just Joined!
    Join Date
    Jun 2007
    Posts
    5
    Quote Originally Posted by framp View Post
    That's a common config error - missing default gateway - and was detected by the script. Did the message of the script helped you to find the root of the problem?
    No that was a route problem, before i did

    route add -net 10.1.77.0 netmask 255.255.255.240 gw 10.1.77.141

    if i did
    route add default gw 10.1.77.1

    if got

    Network unreachable

    my routing table was only upto 10.1.77.128 so i couldnt reach 10.1.77.1 which is my gateway

  10. #9
    Linux Newbie framp's Avatar
    Join Date
    Jul 2006
    Location
    Stuttgart, Germany
    Posts
    240
    Yes - that makes sense. If there is no route to the default gateway you can't reach the GW

    Thank's for your reply so I can enhance the configuration error detection logic in the script.
    "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." Linus Benedict Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •