Re: FreeBSD 6.0: Problem with network, doesn't use default gateway
- From: Glenn Dawson <glenn@xxxxxxxxxxxxxx>
- Date: Tue, 03 Jan 2006 08:47:58 -0800
At 07:18 AM 1/3/2006, Christer Folkesson wrote:
Hi, this is my first message to the mailing-list. I hope that I have included enough information about the problem.
The problem is that my FreeBSD 6.0 (release) won't use the default route (gateway). So I can't access anything on the internet.
Hardware and network equipment: Dell latitude D810 (Pentium M 2.0 GHz, 1.5 GB of primary memory, broadcom gigabit/fast/"normal" ethernet controller). The broadcom chip uses the bge driver. I have looked in the man page for that and no troubles or something like that is mentioned. IPv4 address: 192.168.0.228 /25
The gateway is a netgear RP614 broadband router. IPv4: 192.168.0.199 /25
Also a windows 2003 server is acting as DNS-server for my network.
FreeBSD shares the computer with windows XP pro SP2 using dual boot. In windows it works fine so this convince me that it's a software problem in FreeBSD.
As said, it works perfectly fine inside the LAN, but not outside.
I include a dmesg output (at the bottom) if that is of any importance and also output from ifconfig, netstat -nr, ping and traceroute. I was logged in as root while testing this. Notice that because I'm using an internal DNS-server I can do lookups. Obviously that wouldn't have been possible with the DNS-server provided by my ISP.
I don't see anything obviously wrong with the configuration info you sent below. The problem you are having is more likely in the router you are using, but without that configuration info, it's impossible to tell.
Are you using dhcp to assign IP addresses? If so, is the router doing that job or something else?
Since you mentioned that it works when you boot into windows, are the network settings the same? (IP, netmask, default route ,etc) or is windows configured to use something different?
How is NAT configured in the router? Does it's configuration cover the 192.168.0.228 address?
-Glenn
alcoy# ifconfig bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet6 fe80::214:22ff:fee1:41be%bge0 prefixlen 64 scopeid 0x1 inet 192.168.0.228 netmask 0xffffff80 broadcast 192.168.0.255 ether 00:14:22:e1:41:be media: Ethernet autoselect (100baseTX <full-duplex> ) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff000000 alcoy# netstat -nr Routing tables
Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.0.199 UGS 0 52 bge0 127.0.0.1 127.0.0.1 UH 0 52 lo0 192.168.0.128/25 link#1 UC 0 0 bge0 192.168.0.199 00:09:5b:10:de:14 UHLW 2 190 bge0 1182 192.168.0.210 00:05:5d:0c:f8:23 UHLW 1 29 bge0
Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%bge0/64 link#1 UC bge0 fe80::214:22ff:fee1:41be%bge0 00:14:22:e1:41:be UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#2 UHL lo0 ff01::/32 ::1 U lo0 ff02::%bge0/32 link#1 UC bge0 ff02::%lo0/32 ::1 UC lo0 alcoy# traceroute ping.sunet.se traceroute to ping.sunet.se (130.242.80.31), 64 hops max, 40 byte packets 1 sentinel (192.168.0.199) 0.524 ms 0.518 ms 0.515 ms 2 * * * ^C alcoy# ping sentinel PING router.aqualize.tk (192.168.0.199): 56 data bytes 64 bytes from 192.168.0.199: icmp_seq=0 ttl=250 time=0.669 ms 64 bytes from 192.168.0.199: icmp_seq=1 ttl=250 time=0.679 ms 64 bytes from 192.168.0.199: icmp_seq=2 ttl=250 time=0.673 ms 64 bytes from 192.168.0.199: icmp_seq=3 ttl=250 time=0.673 ms ^C --- router.aqualize.tk ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.669/0.673/0.679/0.004 ms alcoy#
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005
root@xxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/GENERIC
ACPI APIC Table: <DELL CPi R >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 2.00GHz (1995.15-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x6d8 Stepping = 8
Features=0xafe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE>
Features2=0x180<EST,TM2>
AMD Features=0x100000<NX>
real memory = 1610448896 (1535 MB)
avail memory = 1569087488 (1496 MB)
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL CPi R > on motherboard
pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 10 on acpi0
pci_link2: <ACPI PCI Link LNKC> irq 9 on acpi0
pci_link3: <ACPI PCI Link LNKD> irq 7 on acpi0
pci_link4: <ACPI PCI Link LNKE> on acpi0
pci_link5: <ACPI PCI Link LNKF> on acpi0
pci_link6: <ACPI PCI Link LNKH> on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
battery1: <ACPI Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
bge0: <Broadcom BCM5751 Gigabit Ethernet, ASIC rev. 0x4001> mem 0xdfcf0000-0xdfcfffff irq 16 at device 0.0 on pci2
miibus0: <MII bus> on bge0
brgphy0: <BCM5750 10/100/1000baseTX PHY> on miibus0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge0: Ethernet address: 00:14:22:e1:41:be
uhci0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> port 0xbf80-0xbf9f irq 16 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> port 0xbf60-0xbf7f irq 17 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> port 0xbf40-0xbf5f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> port 0xbf20-0xbf3f irq 19 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xffa80800-0xffa80bff irq 16 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <EHCI (generic) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci3: <ACPI PCI bus> on pcib3
cbb0: <PCI-CardBus Bridge> at device 1.0 on pci3
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pci3: <simple comms> at device 1.5 (no driver attached)
pci3: <network> at device 3.0 (no driver attached)
pci0: <multimedia, audio> at device 30.2 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH6 SATA150 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xbfa0-0xbfaf irq 17 at device 31.2 on pci0
atapci0: failed to enable memory mapping!
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64,0x62,0x66 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model GlidePoint, device ID 0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ugen0: vendor 0x413c product 0x8103, rev 2.00/16.57, addr 2
Timecounter "TSC" frequency 1995145893 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 76319MB <Seagate ST9808211A 8.03> at ata0-master UDMA100
acd0: DVDR <TSSTcorp DVD+/-RW TS-L532B/DE03> at ata1-master UDMA33
Trying to mount root from ufs:/dev/ad0s3a
bge0: link state changed to UP
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
_______________________________________________ freebsd-questions@xxxxxxxxxxx mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: FreeBSD 6.0: Problem with network, doesn't use default
- From: Christer Folkesson
- Re: FreeBSD 6.0: Problem with network, doesn't use default
- References:
- FreeBSD 6.0: Problem with network, doesn't use default gateway
- From: Christer Folkesson
- FreeBSD 6.0: Problem with network, doesn't use default gateway
- Prev by Date: Re: unable to write data to disk ad0
- Next by Date: Problems reading CDRW after writing
- Previous by thread: Re: FreeBSD 6.0: Problem with network, doesn't use default gateway
- Next by thread: Re: FreeBSD 6.0: Problem with network, doesn't use default
- Index(es):
Relevant Pages
|