Hi Jerry, Thanks for your help. I'm sorry but I'm a real novice at Linux and I'm not sure how and what I should put in the Routing section of YaST2. Here is a copy of what "netstat -nr" showed after I got the internet etc working. SuSe:/home/lovem # netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 81.83.48.0 0.0.0.0 255.255.248.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 81.83.48.1 0.0.0.0 UG 0 0 0 eth1 Again any help very much appreciated. Thanks in advance for your help. Martin On Wednesday 18 August 2004 17:29, Jerry Feldman wrote:
On Wed, 18 Aug 2004 11:21:31 +0200
Martin Love
wrote: Hi I'm new to Linux and would really appreciate any help or
direction.
Here is the problem I'm having :-
I have SuSe Pro 9.1 installed on a PC with 2 nic. One of the nics is built into the system board and the other is a 3Com 3C905B-TX.
The Build in nic is attached to a cable modem supplied by Telenet (Belgium) and has DHCP enabed.
The 3Com is connected to a second PC with a fixed IP address
assigned.
Eth0 3Com Fixed IP Address LAN Eth1 Built-in DHCP WAN
(Cable Modem)
When I boot the Linux PC I can't access the internet or email. I checked the config using "ifconfig" but it did not show the built in nic with DHCP enabled. I then ran YaST Control Center, Network
Devices
and disabled DHCP and then re-enabled DHCP on the built in nic.
I then checked "ifconfig" again and this time everything seemed ok
and
when I tried to connect to the internet everything was working fine.
So now everytime I reboot I have to disable and then re-enable the DHCP setting for the built in nic before I can use the internet or email.
As I said I'm very new to Linux and I hope that the above make
sense.
The issue is a routing issue. Your routing table probably has the default route going to eth0. From the command line, run the netstat command: netstat -nr
By reenabling DHCP, the routing table is reset. You can go into YaST2, and set up the routing such that the default route always goes to eth1 since eth0 is strictly the LAN.
-------------------------------------------------------
On Thu, 19 Aug 2004 10:45:35 +0200
Martin Love
SuSe:/home/lovem # netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 81.83.48.0 0.0.0.0 255.255.248.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 81.83.48.1 0.0.0.0 UG 0 0 0 eth1 What this routing table is telling you: Traffic to destinations, 192.168.* and 169.254.* go through eth1, which is apparently your local LAN.
Traffic to 127.*.*.* is localhost.
Traffic to 81.83.48.* goes through eth1
All other traffic uses 81.83.48.1 (eth1) as a gateway. If eth1 is
attached to your cable modem, then it will route all traffic other than
the above subnets to the external network.
--
Jerry Feldman
On Thursday 19 August 2004 14:12, Jerry Feldman wrote:
On Thu, 19 Aug 2004 10:45:35 +0200
Martin Love
wrote: SuSe:/home/lovem # netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 81.83.48.0 0.0.0.0 255.255.248.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 81.83.48.1 0.0.0.0 UG 0 0 0 eth1
What this routing table is telling you: Traffic to destinations, 192.168.* and 169.254.* go through eth1, which is apparently your local LAN.
Traffic to 127.*.*.* is localhost.
Traffic to 81.83.48.* goes through eth1
All other traffic uses 81.83.48.1 (eth1) as a gateway. If eth1 is attached to your cable modem, then it will route all traffic other than the above subnets to the external network.
Hi Jerry, Sorry when I replied I some how cut off the original message. Here is it :- Hi I'm new to Linux and would really appreciate any help or direction. Here is the problem I'm having :- I have SuSe Pro 9.1 installed on a PC with 2 nic. One of the nics is built into the system board and the other is a 3Com 3C905B-TX. The Build in nic is attached to a cable modem supplied by Telenet (Belgium) and has DHCP enabed. The 3Com is connected to a second PC with a fixed IP address assigned. Eth0 3Com Fixed IP Address LAN Eth1 Built-in DHCP WAN (Cable Modem) When I boot the Linux PC I can't access the internet or email. I checked the config using "ifconfig" but it did not show the built in nic with DHCP enabled. I then ran YaST Control Center, Network Devices and disabled DHCP and then re-enabled DHCP on the built in nic. I then checked "ifconfig" again and this time everything seemed ok and when I tried to connect to the internet everything was working fine. So now everytime I reboot I have to disable and then re-enable the DHCP setting for the built in nic before I can use the internet or email. As I said I'm very new to Linux and I hope that the above make sense. You very kindly replied saying that you think I needed to update YaST2 and the routing tables so that the default route is eth1. I'm not sure on how to do this. Again, thanks for your help. Martin
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
I noticed last night while trying to configure my SuSE 9.1 laptop for
MIT, that the routing table had en entry for 169.254.0.0. It is coming
from the network scripts, ifup-route. It shouldn't hurt, but I was
wondering why this was done, or is it something that someone at SuSE set
up. I haven't seen any documentation on this either.
--
Jerry Feldman
On Thursday 19 August 2004 07:30 am, Jerry Feldman wrote:
I noticed last night while trying to configure my SuSE 9.1 laptop for MIT, that the routing table had en entry for 169.254.0.0. It is coming from the network scripts, ifup-route. It shouldn't hurt, but I was wondering why this was done, or is it something that someone at SuSE set up. I haven't seen any documentation on this either.
Jerry, if you do a whois 169.254.0.0 you will see it eventually goes to some server called BLACKHOLE. As I understand it, that's what it is. When xp fails to get the proper IP from the DHCP server, it gets one of the 169.254 numbers and nothing works. The strange thing is, as soon as Linux fires up on the same machine I get the correct local IP. I'm sure there is some longwinded answer somewhere but the short one is it's a dummy IP. Now some guru can step in and tell us the REAL STORY! Richard
Richard wrote regarding 'Re: [SLE] Subnet 169.254.0.0' on Thu, Aug 19 at 08:21:
On Thursday 19 August 2004 07:30 am, Jerry Feldman wrote:
I noticed last night while trying to configure my SuSE 9.1 laptop for MIT, that the routing table had en entry for 169.254.0.0. It is coming from the network scripts, ifup-route. It shouldn't hurt, but I was wondering why this was done, or is it something that someone at SuSE set up. I haven't seen any documentation on this either.
Jerry, if you do a whois 169.254.0.0 you will see it eventually goes to some server called BLACKHOLE. As I understand it, that's what it is. When xp fails to get the proper IP from the DHCP server, it gets one of the 169.254 numbers and nothing works. The strange thing is, as soon as Linux fires up on the same machine I get the correct local IP. I'm sure there is some longwinded answer somewhere but the short one is it's a dummy IP.
Now some guru can step in and tell us the REAL STORY!
169.254.0.0/255.255.0.0 is the netblock used by autoconfigured DHCP machines. If you've ever taken a windows box and turned it on without a DHCP server anywhere, it will autoconfigure itself to use an address from that range. It'll then send out a broadcast to see fi anyone else replies on that address, and pick another from that range if the one it chose was taken. And so on. That way, you could have a hub, some wires, and no knowledge of how to configure a network, but still get a couple of home machines to talk to each other. Most DHCP clients now will use that so they can interoperate nicely. --Danny
Anyone using postfix mail notications to cell phone/pager Any Ideas? Paul.
Quoting Paul Ikanza
Anyone using postfix mail notications to cell phone/pager Any Ideas? Paul.
Not quite sure what you are asking. Most cellphone service providers will forward e-mail sent to a certain address to your cellphone's SMS, e.g., 9999999999@vtext.com for Verizon, 9999999999@mobile.att.com for AT&T, 9999999999 is your ten digit phone number (i.e., including area code). The MTA doesn't matter, Postfix, Sendmail, Exim, Qmail, whatever. This is in the United States, YCMV (Your Country May Vary). There are SMS gateway packages, don't know how they work. What they require in terms of hardware and telco services. HTH, Jeffrey
Paul Ikanza wrote:
Anyone using postfix mail notications to cell phone/pager Any Ideas? Paul.
I just set up an alias for root, to mail to another address. As long as
your phone or pager company accepts e-mail pages, you use the
appropriate e-mail address. For example, my cell phone is with Rogers.
So, I could send the email to
Does your phone have email notification? I will be doing this when my new phone arrives.. Neal -----Original Message----- From: Paul Ikanza [mailto:PIkanza@newvision.co.ug] Sent: Thursday, August 19, 2004 6:47 AM To: 'SuSE List' Subject: [SLE] Notifications Anyone using postfix mail notications to cell phone/pager Any Ideas? Paul. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Thu, 19 Aug 2004 08:48:25 -0500
Danny Sauer
169.254.0.0/255.255.0.0 is the netblock used by autoconfigured DHCP machines. If you've ever taken a windows box and turned it on without a DHCP server anywhere, it will autoconfigure itself to use an address from that range. It'll then send out a broadcast to see fi anyone else replies on that address, and pick another from that range if the one it chose was taken. And so on. That way, you could have a hub, some wires, and no knowledge of how to configure a network, but still get a couple of home machines to talk to each other. Most DHCP clients now will use that so they can interoperate nicely.
Yes, but I don't understand why it is configured on 9.1, even when I
have used only a static address.
--
Jerry Feldman
Jerry wrote regarding 'Re: [SLE] Subnet 169.254.0.0' on Thu, Aug 19 at 09:40:
On Thu, 19 Aug 2004 08:48:25 -0500 Danny Sauer
wrote: 169.254.0.0/255.255.0.0 is the netblock used by autoconfigured DHCP machines. If you've ever taken a windows box and turned it on without a DHCP server anywhere, it will autoconfigure itself to use an address from that range. It'll then send out a broadcast to see fi anyone else replies on that address, and pick another from that range if the one it chose was taken. And so on. That way, you could have a hub, some wires, and no knowledge of how to configure a network, but still get a couple of home machines to talk to each other. Most DHCP clients now will use that so they can interoperate nicely.
Yes, but I don't understand why it is configured on 9.1, even when I have used only a static address.
Say you've got a windows machine at home, too, and that you haven't set up a DHCP server. You just went out, bought a network card, and plugged it into your windows machine. Then you hooked both of your machines up to a hub. Now your windows machine will assign itself an address in that range by itself, without you having to do anythign else. If that address is configured on the SuSE box, then the two computers will be able to see each other with no other configuration. It doesn't hurt anything, and it possibly makes it easier to interoperate with the windows box. I'm guessing that's why it was done. Or maybe you're running the dhcpd client for some reason, even with the static IP? Then again, I'm just guessing at this point. My 9.1 boxes all use DHCP, so I don't see that here. :) --Danny
On Thursday 19 August 2004 16:37, Jerry Feldman wrote:
On Thu, 19 Aug 2004 08:48:25 -0500
Danny Sauer
wrote: 169.254.0.0/255.255.0.0 is the netblock used by autoconfigured DHCP machines. If you've ever taken a windows box and turned it on without a DHCP server anywhere, it will autoconfigure itself to use an address from that range. It'll then send out a broadcast to see fi anyone else replies on that address, and pick another from that range if the one it chose was taken. And so on. That way, you could have a hub, some wires, and no knowledge of how to configure a network, but still get a couple of home machines to talk to each other. Most DHCP clients now will use that so they can interoperate nicely.
Yes, but I don't understand why it is configured on 9.1, even when I have used only a static address.
The idea is to make 9.1 zeroconf ready. http://www.zeroconf.org zeroconf is a system for configuring machines completely automatically, assigning ip addresses on local lan without dhcp and all, and the 169.254/16 network is a part of that
On Thursday 19 August 2004 08:48 am, Danny Sauer wrote:
169.254.0.0/255.255.0.0 is the netblock used by autoconfigured DHCP machines. If you've ever taken a windows box and turned it on without a DHCP server anywhere, it will autoconfigure itself to use an address from that range. It'll then send out a broadcast to see fi anyone else replies on that address, and pick another from that range if the one it chose was taken. And so on. That way, you could have a hub, some wires, and no knowledge of how to configure a network, but still get a couple of home machines to talk to each other. Most DHCP clients now will use that so they can interoperate nicely.
--Danny
I understand your answer, although I'm not real certain why things are done that way. I have a Dell 1150 laptop with XP & SuSE9.1 on it and it has a real problem getting an IP from my Belkin wireless router when running XP. It usually picks up the blackhole IP and will not get a useable IP. But then sometimes after a restart it will pick up the correct IP and work fine until the next boot. Linux on the same laptop gets the correct IP every time. For me that's enough of an excuse to delete XP now. On the other hand, I have a friend with an HP laptop using XP and an ethernet connection going into a linksys router/hub and that machine has the same problem but it will hook up properly about 80% of the time. It will work 100% if I plug it into my linux router, indicating some kind of router problem, maybe. Is there a reliable way to insure the client gets the proper IP. Or is there a way to force the client to get the IP? I realize this is really a windows question but I ask it here since 99% of my time is spent using SuSE and I would like to know why Linux is so much easier to connect to a DHCP server. Richard
Richard wrote regarding 'Re: [SLE] Subnet 169.254.0.0' on Thu, Aug 19 at 10:49:
On Thursday 19 August 2004 08:48 am, Danny Sauer wrote: [...] done that way. I have a Dell 1150 laptop with XP & SuSE9.1 on it and it has a real problem getting an IP from my Belkin wireless router when running XP. It usually picks up the blackhole IP and will not get a useable IP. But then sometimes after a restart it will pick up the correct IP and work fine until the next boot. Linux on the same laptop gets the correct IP every time. For me that's enough of an excuse to delete XP now.
On the other hand, I have a friend with an HP laptop using XP and an ethernet connection going into a linksys router/hub and that machine has the same problem but it will hook up properly about 80% of the time. It will work 100% if I plug it into my linux router, indicating some kind of router problem, maybe.
Is there a reliable way to insure the client gets the proper IP. Or is there a way to force the client to get the IP?
What's serving DHCP, the linksys router/hub or the linux router - or are these on seperate networks? Basically, a DHCP client sends out a broadcast asking for an IP, the DHCP server responds with a broadcast that the machine should get, and then the machine sends another message to the DHCP server (Ack! my Address! - or something like that :)). So, perhaps the broadcasts aren't being passed around properly, or perhaps you've just got a bad cable - does the setup work better under Linux v/s windows when using the exact same ethernet cable in the exact same port on the exact same hub? --Danny
What's serving DHCP, the linksys router/hub or the linux router - or are these on seperate networks? They are two separate networks in two different places. One uses the
On Thursday 19 August 2004 02:47 pm, Danny Sauer wrote: linksys router/hub which connects to the internet via cable modem and provides masquerading for the local net. It is the dhcp server for the local net which is all windows stuff 98 and XP. The 98 machines request and get a consistent IPs assigned and work fine. It's the XP machine that has a hard time getting the IP and often defaults to the blackhole number. That same XP machine when plugged into my separate linux router never fails to get its IP assigned by the dhcp server. At the second location I have the wired stuff going into a linux router/server and it feeds into my wireless (Belkin) route which then goes to the cable modem. I know it's a little strange but I did it that way cause I had VoIP /dmz set up on the linux machine to handle my phone system independently. The wireless was added to primarily take care of laptops. Again, linux based wireless gets the IP without fail while the same laptop running XP will often come up with blackhole number and only rebooting will let it connect with the proper IP - sometimes. I have another laptop running win98 which always gets the proper IP.
Basically, a DHCP client sends out a broadcast asking for an IP, the DHCP server responds with a broadcast that the machine should get, and then the machine sends another message to the DHCP server (Ack! my Address! - or something like that :)).
So, perhaps the broadcasts aren't being passed around properly, or perhaps you've just got a bad cable - does the setup work better under Linux v/s windows when using the exact same ethernet cable in the exact same port on the exact same hub? Yes! I put linux on the hp laptop and it gets the IP right every time! Using same everything only the router is different and the linux hookup is also without a problem!
I wonder what diagnostic tool will tell me what is happening with the windows stuff. Richard
Richard wrote regarding 'Re: [SLE] Subnet 169.254.0.0' on Thu, Aug 19 at 23:04:
On Thursday 19 August 2004 02:47 pm, Danny Sauer wrote: [...]
Basically, a DHCP client sends out a broadcast asking for an IP, the DHCP server responds with a broadcast that the machine should get, and then the machine sends another message to the DHCP server (Ack! my Address! - or something like that :)).
So, perhaps the broadcasts aren't being passed around properly, or perhaps you've just got a bad cable - does the setup work better under Linux v/s windows when using the exact same ethernet cable in the exact same port on the exact same hub? Yes! I put linux on the hp laptop and it gets the IP right every time! Using same everything only the router is different and the linux hookup is also without a problem!
I wonder what diagnostic tool will tell me what is happening with the windows stuff.
Personally, I'd fire up ethereal just before turning the windows machine on, every time. Look for the DHCP packets, and see what the heck's going on. You might get similar help from ntop, but I think ethereal will do what you want there. --Danny, slow to respond, so it seems
On Monday 23 August 2004 05:15 pm, Danny Sauer wrote:
Personally, I'd fire up ethereal just before turning the windows machine on, every time. Look for the DHCP packets, and see what the heck's going on. You might get similar help from ntop, but I think ethereal will do what you want there.
--Danny, slow to respond, so it seems
I'll give that a try, Thanks. ra
participants (9)
-
Anders Johansson
-
Danny Sauer
-
James Knott
-
Jeffrey L. Taylor
-
Jerry Feldman
-
Martin Love
-
nhaas
-
Paul Ikanza
-
Richard