LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-27-2004, 05:06 PM   #1
CycloLink
Member
 
Registered: Jan 2004
Distribution: Redhat 9.0
Posts: 32

Rep: Reputation: 15
Static Ip


I am running Redhat 9.0 and setting up a static Ip. I have used the GNOME Interent configuration wizard to set a static Ip, netmask and gateway. I have also set the hostname and primary and secondary dns. I try the internet and it doesn't work. I can ping my ip address and 127.0.0.1 with no problems. However when I try to ping the gateway address I get host unreachable. This machine is also a dual boot machine. When I boot into windows I have absolutely no problem with internet. All of the same information is used and I can surf with out problems. This machine had no problem accessing the internet with the same net configuration for redhat 7.1 but as soon as I upgrade everything goes to crap.

Any help would be greatly appreciated.
 
Old 01-27-2004, 06:12 PM   #2
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
127.0.0.1 is a local loopback address you are not really ping anything. You need to configure you network. What is the output of
ifconfig -a;
lsmod;
lspci -v;
netstat -rn;
cat /etc/sysconfig/network-scripts/ifcfg-eth0;
cat /etc/modules.conf;
From there we should see what is missing.
Gerard
 
Old 01-27-2004, 09:26 PM   #3
CycloLink
Member
 
Registered: Jan 2004
Distribution: Redhat 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:50A:5F:07:10
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:703 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:5960 (5.8 Kb) TX bytes:540 (540.0 b)
Interrupt:11 Base address:0xec80

eth1 Link encap:Ethernet HWaddr 00:B00:07:23:0B
inet addr:184.34.133.172 Bcast:184.34.133.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:514 errors:0 dropped:0 overruns:0 carrier:514
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:30840 (30.1 Kb)
Interrupt:11 Base address:0xec00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1075 errors:0 dropped:0 overruns:0 frame:0
TX packets:1075 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:61260 (59.8 Kb) TX bytes:61260 (59.8 Kb)


lsmod

Module Size Used by Not tainted
mga 104448 1
agpgart 47776 3
3c59x 30704 1
ipt_REJECT 3928 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15096 2 [ipt_REJECT iptable_filter]
sg 36524 0 (autoclean)
sr_mod 18136 0 (autoclean)
ide-scsi 12208 0
scsi_mod 107160 3 [sg sr_mod ide-scsi]
ide-cd 35708 0
cdrom 33728 0 [sr_mod ide-cd]
keybdev 2944 0 (unused)
mousedev 5492 1
hid 22148 0 (unused)
input 5856 0 [keybdev mousedev hid]
usb-uhci 26348 0 (unused)
usbcore 78784 1 [hid usb-uhci]
ext3 70784 2
jbd 51892 2 [ext3]


lspci -v

00:00.0 Host bridge: Intel Corp. 82850 850 (Tehama) Chipset Host Bridge (MCH) (rev 02)
Subsystem: Dell Computer Corporation: Unknown device 00d2
Flags: bus master, fast devsel, latency 0
Memory at f0000000 (32-bit, prefetchable) [size=128M]
Capabilities: [a0] AGP version 2.0

00:01.0 PCI bridge: Intel Corp. 82850 850 (Tehama) Chipset AGP Bridge (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, fast devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
Memory behind bridge: fd800000-fe7fffff
Prefetchable memory behind bridge: f8000000-f9ffffff

00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev 04) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=64
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: fe900000-feafffff

00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 04)
Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 04) (prog-if 80 [Master])
Subsystem: Dell Computer Corporation: Unknown device 00d2
Flags: bus master, medium devsel, latency 0
I/O ports at ffa0 [size=16]

00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 04) (prog-if 00 [UHCI])
Subsystem: Dell Computer Corporation: Unknown device 00d2
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at ff80 [size=32]

00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 04)
Subsystem: Dell Computer Corporation: Unknown device 00d2
Flags: medium devsel, IRQ 10
I/O ports at dcd0 [size=16]

00:1f.4 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 04) (prog-if 00 [UHCI])
Subsystem: Dell Computer Corporation: Unknown device 00d2
Flags: bus master, medium devsel, latency 0, IRQ 9
I/O ports at ff60 [size=32]

00:1f.5 Multimedia audio controller: Intel Corp. 82801BA/BAM AC'97 Audio (rev 04)
Subsystem: Dell Computer Corporation: Unknown device 00d2
Flags: bus master, medium devsel, latency 0, IRQ 10
I/O ports at d800 [size=256]
I/O ports at dc40 [size=64]

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 82) (prog-if 00 [VGA])
Subsystem: Matrox Graphics, Inc. Millennium G450 32Mb SDRAM Dual Head
Flags: bus master, medium devsel, latency 64, IRQ 11
Memory at f8000000 (32-bit, prefetchable) [size=32M]
Memory at fe6fc000 (32-bit, non-prefetchable) [size=16K]
Memory at fd800000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at 80000000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
Capabilities: [f0] AGP version 2.0

02:0b.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 74)
Subsystem: 3Com Corporation 3C905C-TX Fast Etherlink for PC Management NIC
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at ec80 [size=128]
Memory at fe9ffc00 (32-bit, non-prefetchable) [size=128]
Expansion ROM at fea00000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2

02:0c.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
Subsystem: Dell Computer Corporation: Unknown device 00d2
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at ec00 [size=128]
Memory at fe9ff800 (32-bit, non-prefetchable) [size=128]
Expansion ROM at fea00000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2


netstat -rn

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
184.34.133.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 184.34.133.254 0.0.0.0 UG 0 0 0 eth1


cat /etc/sysconfig/network-scripts/ifcfg-eth1

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERCTL=no
PEERDNS=no
GATEWAY=184.34.133.254
TYPE=Ethernet
DEVICE=eth1
HWADDR=00:b0:d0:07:23:0b
BOOTPROTO=none
NETMASK=255.255.255.0
ONBOOT=yes
IPADDR=184.34.133.172
NETWORK=184.34.133.0
BROADCAST=184.34.133.255


cat /etc/modules.conf

alias eth0 3c59x
alias eth1 3c59x
options i810_audio ftsodell=1
alias usb-controller usb-uhci
alias sound-slot-0 i810_audio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :



Also that is not the real ip and I know that I have two ethernet cards but eth0 is disabled. I have to use eth1 because a program I use is bound to the Mac address and I would have to buy a new liscense if I change hardware.

Last edited by CycloLink; 01-27-2004 at 09:28 PM.
 
Old 01-28-2004, 07:53 AM   #4
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
See if you can ping the default gateway. You are assigned the public IP for you ISP? That 169.254..0.0/16 route in you routing table looks odd.
 
Old 01-28-2004, 09:50 AM   #5
DMRansom
Member
 
Registered: Jun 2003
Distribution: slackware, fedora core4
Posts: 39

Rep: Reputation: 15
There are 2 nics listed in ifconfig eth0 and eth1 did you configure the right card.
 
Old 01-28-2004, 12:26 PM   #6
CycloLink
Member
 
Registered: Jan 2004
Distribution: Redhat 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
no i cannot ping the default gateway. actually the ip is provided by our building. i know all the info is correct because i have checked and because it works with windows. as for the 169.254.0.0/16 i have no idea what the hell that is. it seems to come up every time i run the internet configurer that comes up under route -n or netstat -rn. as for the two nic cards, they are configured correctly. eth0 is disabled with no cable and i cannot activate. eth1 i can. i am not a complete noob. well maybe a little bit, but the card is configured correctly.
 
Old 01-28-2004, 12:34 PM   #7
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Can you humor me and try switching the cable to the other NIC and try. In the past I have been positive that I was plugged into the right nic and I was wrong.
 
Old 01-28-2004, 01:12 PM   #8
CycloLink
Member
 
Registered: Jan 2004
Distribution: Redhat 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
unfortunately i cannot switch the cable since the programs i run on windows require a static ip and the mac address of the nic. i can however set up eth0 to humor you. try and get eth0 working and let you know. is that ok?
 
Old 01-28-2004, 01:22 PM   #9
fataldata
Member
 
Registered: Jun 2002
Location: Breckenridge, Colorado
Distribution: Ubuntu Hardy 8.04
Posts: 101

Rep: Reputation: 15
Don't worry about the 169.254..... address. Reference this thread for more info.
http://www.linuxquestions.org/questi...hreadid=138439
 
Old 01-28-2004, 01:33 PM   #10
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Sure that sounds good. What is the mac address of the nic that is wired to the network?
Does it end in 23:0B OR 07:10?
 
Old 01-28-2004, 02:15 PM   #11
CycloLink
Member
 
Registered: Jan 2004
Distribution: Redhat 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
23:0B but i will double check.
 
Old 01-28-2004, 05:49 PM   #12
CycloLink
Member
 
Registered: Jan 2004
Distribution: Redhat 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
i guess i double checked for good reason. logged on to the windows 2000 i ipconfig /all to see what the working mac address was and it ends in 07:10. i need a swift kick to the crotch after that debacle.

with the other card i had absolutely no problems.

thanks a lot g-rod. i owe u one.
 
Old 01-28-2004, 06:02 PM   #13
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Glad to hear it works. I have made the same mistake before. Especially when it is the same brand of NIC.
Let me know if you need any help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Is there any static ARP for static IP network? linux_lover2005 Linux - Networking 2 05-18-2005 12:01 PM
no static ip need help kwickcut Mandriva 1 12-07-2004 06:59 PM
Can't use static IP linuxistan Linux - Networking 5 10-17-2004 09:26 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration