Re: Default Route Issues
On 2007/12/14 19:30, Bret wrote: So the question is.. will haveing the 10.90.0.0/16 subnet cause conflicts with the 10.70.0.0/16 and 10.80.0.0/16 networks on the OpenBSD (1) box's routing table. I think you should read the Understanding IP Addressing document referenced in faq 6.1. I didn't have time to work out the diagrams (ifconfig output is much easier to read) - but you can easily see if addresses are within the same network by looking at the network address as displayed by ipcalc (available in packages), it accepts most address formats and shows you which part is the network address, range of addresses etc. $ ipcalc 10.90.0.0/16 $ ipcalc 10.90.0.0/0x $ ipcalc 10.90.0.0/255.255.0.0 address : 10.90.0.0 netmask : 255.255.0.0 (0x) network : 10.90.0.0 /16 broadcast : 10.90.255.255 host min : 10.90.0.1 host max : 10.90.255.254 hosts/net : 65534 Then it's easy to see that the network part of the address for a /16 is the first two numbers of the four, i.e. 10.90, so 10.70 and 10.80 don't conflict with this.
Re: Default Route Issues
Thanks For the help But looking at the following OK here is the update: Internet I OpenBSD 4.2 (1) 10.60.0.1--- wired LAN I wireless card - 10.60.128.1 I I I wireless card ral0 - 10.60.128.2 I netmask 255.255.192.0 I broadcast 10.60.63.255 OpenBSD 4.2 (2) wired LAN em0 - 10.80.0.1 I netmask 255.255.0.0 I broadcast 10.80.255.255 wireless card ral1 - 10.70.0.1 netmask 255.255.0.0 broadcast 10.70.25.255 - I then added another wireless card to OpenBSD 4.2 (1) I Wireless Card (2)as 10.60.192.1 netmask 255.255.192.0 broadcast 10.60.255.255 I I wireless card (2-1) 10.60.192.2 I I OpenBSD (3) I wired lan 10.90.0.1 netmask 255.255.0.0 broadcast 10.90.255.255 I I host 10.90.0.2 netmask 255.255.0.0 broadcast 10.90.255.255 So the question is.. will haveing the 10.90.0.0/16 subnet cause conflicts with the 10.70.0.0/16 and 10.80.0.0/16 networks on the OpenBSD (1) box's routing table. Bret On 2007/12/11 08:40, Bret wrote: OK here is the update: ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) inet 10.60.130.1 netmask 0xc000 broadcast 10.60.191.255 As I suspected, these are all in the same network. $ ipcalc 10.60.130.1/0xc000 address : 10.60.130.1 netmask : 255.255.192.0 (0xc000) network : 10.60.128.0 /18 broadcast : 10.60.191.255 host min : 10.60.128.1 host max : 10.60.191.254 hosts/net : 16382 Your chosen netmask makes the first 18 bits of the IP address be the network address, so 10.60.128 [...] 10.60.191 are all in the same network. This part of the address should be different between interfaces.
Re: Default Route Issues
Thanks For the help But looking at the following OK here is the update: Internet I OpenBSD 4.2 (1) 10.60.0.1--- wired LAN I wireless card - 10.60.128.1 I I I wireless card ral0 - 10.60.128.2 I netmask 255.255.192.0 I broadcast 10.60.63.255 OpenBSD 4.2 (2) wired LAN em0 - 10.80.0.1 I netmask 255.255.0.0 I broadcast 10.80.255.255 wireless card ral1 - 10.70.0.1 netmask 255.255.0.0 broadcast 10.70.25.255 - I then added another wireless card to OpenBSD 4.2 (1) I Wireless Card (2)as 10.60.192.1 netmask 255.255.192.0 broadcast 10.60.255.255 I I wireless card (2-1) 10.60.192.2 I I OpenBSD (3) I wired lan 10.90.0.1 netmask 255.255.0.0 broadcast 10.90.255.255 I I host 10.90.0.2 netmask 255.255.0.0 broadcast 10.90.255.255 So the question is.. will haveing the 10.90.0.0/16 subnet cause conflicts with the 10.70.0.0/16 and 10.80.0.0/16 networks on the OpenBSD (1) box's routing table. Bret Stuart Henderson wrote: On 2007/12/11 08:40, Bret wrote: OK here is the update: ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) inet 10.60.130.1 netmask 0xc000 broadcast 10.60.191.255 As I suspected, these are all in the same network. $ ipcalc 10.60.130.1/0xc000 address : 10.60.130.1 netmask : 255.255.192.0 (0xc000) network : 10.60.128.0 /18 broadcast : 10.60.191.255 host min : 10.60.128.1 host max : 10.60.191.254 hosts/net : 16382 Your chosen netmask makes the first 18 bits of the IP address be the network address, so 10.60.128 [...] 10.60.191 are all in the same network. This part of the address should be different between interfaces.
Re: Default Route Issues
Thanks For the help But looking at the following OK here is the update: Internet I OpenBSD 4.2 (1) 10.60.0.1--- wired LAN I wireless card - 10.60.128.1 I I I wireless card ral0 - 10.60.128.2 I netmask 255.255.192.0 I broadcast 10.60.63.255 OpenBSD 4.2 (2) wired LAN em0 - 10.80.0.1 I netmask 255.255.0.0 I broadcast 10.80.255.255 wireless card ral1 - 10.70.0.1 netmask 255.255.0.0 broadcast 10.70.25.255 - I then added another wireless card to OpenBSD 4.2 (1) I Wireless Card (2)as 10.60.192.1 netmask 255.255.192.0 broadcast 10.60.255.255 I I wireless card (2-1) 10.60.192.2 I I OpenBSD (3) I wired lan 10.90.0.1 netmask 255.255.0.0 broadcast 10.90.255.255 I I host 10.90.0.2 netmask 255.255.0.0 broadcast 10.90.255.255 So the question is.. will haveing the 10.90.0.0/16 subnet cause conflicts with the 10.70.0.0/16 and 10.80.0.0/16 networks on the OpenBSD (1) box's routing table. Bret Stuart Henderson wrote: On 2007/12/11 08:40, Bret wrote: OK here is the update: ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) inet 10.60.130.1 netmask 0xc000 broadcast 10.60.191.255 As I suspected, these are all in the same network. $ ipcalc 10.60.130.1/0xc000 address : 10.60.130.1 netmask : 255.255.192.0 (0xc000) network : 10.60.128.0 /18 broadcast : 10.60.191.255 host min : 10.60.128.1 host max : 10.60.191.254 hosts/net : 16382 Your chosen netmask makes the first 18 bits of the IP address be the network address, so 10.60.128 [...] 10.60.191 are all in the same network. This part of the address should be different between interfaces.
Re: Default Route Issues
On 2007/12/10 19:58, Bret wrote: The default route needs to be thru the wireless card and works fine untill I add an IP for the wired lan vr() or I add it to the bridge: up ral0 up ral1 -- works great (and yes the up) but as soon as I add the vr0 the default route goes to the wired lan vr0. It sounds like you're using the same subnet on two network interfaces. That won't work. Either use different subnets, or use trunk. If that's not what you're trying to do, post the output from netstat -rnfinet and ifconfig -A so we can see how things are configured.
Re: Default Route Issues
Greets OK here is the update: Internet I OpenBSD 4.2 (1) --- wired LAN I wireless card - 10.60.128.1 I I (the following is the problem box) I wireless card ral0 - 10.60.128.2 I OpenBSD 4.2 (2) wired LAN em0 - 10.60.130.1 I wireless card ral1 - 10.60.129.1 I am pulling this info off another server/router that I have at home so the vr0 interface is replaced with the em0 First ifconfig -A, netstat -rnfinet without the wired lan (em0) enabled. *ifconfig -A* lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224 groups: lo inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:ad:0a:32 groups: wlan egress media: IEEE802.11 OFDM54 mode 11g (DS1 mode 11g) status: active ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid 00:08:a1:ad:0a:46 50dB 100dBm inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:fead:a32%ral0 prefixlen 64 scopeid 0x1 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:b5:64:e2 groups: wlan media: IEEE802.11 OFDM54 mode 11g hostap (autoselect mode 11g hostap) status: active ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid 00:08:a1:b5:64:e2 100dBm inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:feb5:64e2%ral1 prefixlen 64 scopeid 0x2 fxp0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4d media: Ethernet autoselect (none) status: no carrier em0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4c media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) status: active pflog0: flags=0 mtu 33224 enc0: flags=0 mtu 1536 *netstat -rnfinet* Routing tables Internet: DestinationGatewayFlagsRefs UseMtu Interface default10.60.128.1UGS 3 89 - ral0 10.60.128/18 link#1 UC 10 - ral0 10.60.128.100:08:a1:ad:0a:46 UHLc18 - ral0 127/8 127.0.0.1 UGRS00 33224 lo0 127.0.0.1 127.0.0.1 UH 10 33224 lo0 224/4 127.0.0.1 URS 00 33224 lo0 at this time I can ping the OpenBSD (1) server fine everything works, I now enable em0 and reboot to get the following, ( I do not have routed_flags=-q enabled but I get the same results if I do have it enabled. *ifconfig -A *lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224 groups: lo inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:ad:0a:32 groups: wlan egress media: IEEE802.11 OFDM54 mode 11g (OFDM36 mode 11g) status: active ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid 00:08:a1:ad:0a:46 50dB 100dBm inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:fead:a32%ral0 prefixlen 64 scopeid 0x1 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:b5:64:e2 groups: wlan media: IEEE802.11 OFDM54 mode 11g hostap (autoselect mode 11g hostap) status: active ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid 00:08:a1:b5:64:e2 100dBm inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:feb5:64e2%ral1 prefixlen 64 scopeid 0x2 fxp0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4d media: Ethernet autoselect (none) status: no carrier em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4c media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) status: active inet 10.60.130.1 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::2e0:81ff:fe65:f24c%em0 prefixlen 64 scopeid 0x4 pflog0: flags=0 mtu 33224 enc0: flags=0 mtu 1536 *netstat -rnfinet *Routing tables Internet: DestinationGatewayFlagsRefs UseMtu Interface default10.60.128.1UGS 00 - ral0 10.60.128/18 link#4 UC 10 - em0 10.60.128.1link#4 UHLc2 13 - em0 127/8 127.0.0.1 UGRS00 33224 lo0 127.0.0.1 127.0.0.1 UH 10 33224 lo0 224/4 127.0.0.1 URS 00 33224 lo0 As you can see I now have a fubared routing table. I can no longer ping OpenBSD (1), I have tried to do a route flush and manual route add but it always comes back to this. Stuart Henderson wrote: On 2007/12/10
Re: Default Route Issues
Greets OK here is the update: Internet I OpenBSD 4.2 (1) --- wired LAN I wireless card - 10.60.128.1 I I (the following is the problem box) I wireless card ral0 - 10.60.128.2 I OpenBSD 4.2 (2) wired LAN em0 - 10.60.130.1 I wireless card ral1 - 10.60.129.1 I am pulling this info off another server/router that I have at home so the vr0 interface is replaced with the em0 First ifconfig -A, netstat -rnfinet without the wired lan (em0) enabled. *ifconfig -A* lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224 groups: lo inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:ad:0a:32 groups: wlan egress media: IEEE802.11 OFDM54 mode 11g (DS1 mode 11g) status: active ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid 00:08:a1:ad:0a:46 50dB 100dBm inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:fead:a32%ral0 prefixlen 64 scopeid 0x1 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:b5:64:e2 groups: wlan media: IEEE802.11 OFDM54 mode 11g hostap (autoselect mode 11g hostap) status: active ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid 00:08:a1:b5:64:e2 100dBm inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:feb5:64e2%ral1 prefixlen 64 scopeid 0x2 fxp0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4d media: Ethernet autoselect (none) status: no carrier em0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4c media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) status: active pflog0: flags=0 mtu 33224 enc0: flags=0 mtu 1536 *netstat -rnfinet* Routing tables Internet: DestinationGatewayFlagsRefs UseMtu Interface default10.60.128.1UGS 3 89 - ral0 10.60.128/18 link#1 UC 10 - ral0 10.60.128.100:08:a1:ad:0a:46 UHLc18 - ral0 127/8 127.0.0.1 UGRS00 33224 lo0 127.0.0.1 127.0.0.1 UH 10 33224 lo0 224/4 127.0.0.1 URS 00 33224 lo0 at this time I can ping the OpenBSD (1) server fine everything works, I now enable em0 and reboot to get the following, ( I do not have routed_flags=-q enabled but I get the same results if I do have it enabled. *ifconfig -A *lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224 groups: lo inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:ad:0a:32 groups: wlan egress media: IEEE802.11 OFDM54 mode 11g (OFDM36 mode 11g) status: active ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid 00:08:a1:ad:0a:46 50dB 100dBm inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:fead:a32%ral0 prefixlen 64 scopeid 0x1 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:b5:64:e2 groups: wlan media: IEEE802.11 OFDM54 mode 11g hostap (autoselect mode 11g hostap) status: active ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid 00:08:a1:b5:64:e2 100dBm inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:feb5:64e2%ral1 prefixlen 64 scopeid 0x2 fxp0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4d media: Ethernet autoselect (none) status: no carrier em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4c media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) status: active inet 10.60.130.1 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::2e0:81ff:fe65:f24c%em0 prefixlen 64 scopeid 0x4 pflog0: flags=0 mtu 33224 enc0: flags=0 mtu 1536 *netstat -rnfinet *Routing tables Internet: DestinationGatewayFlagsRefs UseMtu Interface default10.60.128.1UGS 00 - ral0 10.60.128/18 link#4 UC 10 - em0 10.60.128.1link#4 UHLc2 13 - em0 127/8 127.0.0.1 UGRS00 33224 lo0 127.0.0.1 127.0.0.1 UH 10 33224 lo0 224/4 127.0.0.1 URS 00 33224 lo0 As you can see I now have a fubared routing table. I can no longer ping OpenBSD (1), I have tried to do a route flush and manual route add but it always comes back to this. Bret Stuart Henderson wrote: On 2007/12/10
Re: Default Route Issues
On 2007/12/11 08:40, Bret wrote: OK here is the update: ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) inet 10.60.130.1 netmask 0xc000 broadcast 10.60.191.255 As I suspected, these are all in the same network. $ ipcalc 10.60.130.1/0xc000 address : 10.60.130.1 netmask : 255.255.192.0 (0xc000) network : 10.60.128.0 /18 broadcast : 10.60.191.255 host min : 10.60.128.1 host max : 10.60.191.254 hosts/net : 16382 Your chosen netmask makes the first 18 bits of the IP address be the network address, so 10.60.128 [...] 10.60.191 are all in the same network. This part of the address should be different between interfaces.
Re: Default Route Issues
On Tue, 11 Dec 2007 22:40:06 +0700, Bret [EMAIL PROTECTED] wrote: Greets OK here is the update: Internet I OpenBSD 4.2 (1) --- wired LAN I wireless card - 10.60.128.1 I I (the following is the problem box) I wireless card ral0 - 10.60.128.2 I OpenBSD 4.2 (2) wired LAN em0 - 10.60.130.1 I wireless card ral1 - 10.60.129.1 I am pulling this info off another server/router that I have at home so the vr0 interface is replaced with the em0 First ifconfig -A, netstat -rnfinet without the wired lan (em0) enabled. *ifconfig -A* lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224 groups: lo inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:ad:0a:32 groups: wlan egress media: IEEE802.11 OFDM54 mode 11g (DS1 mode 11g) status: active ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid 00:08:a1:ad:0a:46 50dB 100dBm inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:fead:a32%ral0 prefixlen 64 scopeid 0x1 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:b5:64:e2 groups: wlan media: IEEE802.11 OFDM54 mode 11g hostap (autoselect mode 11g hostap) status: active ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid 00:08:a1:b5:64:e2 100dBm inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:feb5:64e2%ral1 prefixlen 64 scopeid 0x2 fxp0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4d media: Ethernet autoselect (none) status: no carrier em0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4c media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) status: active pflog0: flags=0 mtu 33224 enc0: flags=0 mtu 1536 *netstat -rnfinet* Routing tables Internet: DestinationGatewayFlagsRefs UseMtu Interface default10.60.128.1UGS 3 89 - ral0 10.60.128/18 link#1 UC 10 - ral0 10.60.128.100:08:a1:ad:0a:46 UHLc18 - ral0 127/8 127.0.0.1 UGRS00 33224 lo0 127.0.0.1 127.0.0.1 UH 10 33224 lo0 224/4 127.0.0.1 URS 00 33224 lo0 at this time I can ping the OpenBSD (1) server fine everything works, I now enable em0 and reboot to get the following, ( I do not have routed_flags=-q enabled but I get the same results if I do have it enabled. *ifconfig -A *lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224 groups: lo inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:ad:0a:32 groups: wlan egress media: IEEE802.11 OFDM54 mode 11g (OFDM36 mode 11g) status: active ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid 00:08:a1:ad:0a:46 50dB 100dBm inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:fead:a32%ral0 prefixlen 64 scopeid 0x1 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:08:a1:b5:64:e2 groups: wlan media: IEEE802.11 OFDM54 mode 11g hostap (autoselect mode 11g hostap) status: active ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid 00:08:a1:b5:64:e2 100dBm inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::208:a1ff:feb5:64e2%ral1 prefixlen 64 scopeid 0x2 fxp0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4d media: Ethernet autoselect (none) status: no carrier em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:e0:81:65:f2:4c media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) status: active inet 10.60.130.1 netmask 0xc000 broadcast 10.60.191.255 inet6 fe80::2e0:81ff:fe65:f24c%em0 prefixlen 64 scopeid 0x4 pflog0: flags=0 mtu 33224 enc0: flags=0 mtu 1536 *netstat -rnfinet *Routing tables Internet: DestinationGatewayFlagsRefs UseMtu Interface default10.60.128.1UGS 00 - ral0 10.60.128/18 link#4 UC 10 - em0 10.60.128.1link#4 UHLc2 13 - em0 127/8 127.0.0.1 UGRS00 33224 lo0 127.0.0.1 127.0.0.1 UH 10 33224 lo0 224/4 127.0.0.1 URS 00 33224 lo0 As you can see I now have a fubared routing table. I can no longer ping OpenBSD (1), I have tried to do a route flush and manual route add but it always comes back to
Re: Default Route Issues
Thank You all for the pointers I now have it up and running and only have a small persistent route problem. Bret Stuart Henderson wrote: On 2007/12/11 08:40, Bret wrote: OK here is the update: ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ieee80211: nwid tri-statebroadband.com_2 chan 3 bssid inet 10.60.128.2 netmask 0xc000 broadcast 10.60.191.255 ral1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ieee80211: nwid tri-statebroadband.com_2_1 chan 1 bssid inet 10.60.129.1 netmask 0xc000 broadcast 10.60.191.255 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause) inet 10.60.130.1 netmask 0xc000 broadcast 10.60.191.255 As I suspected, these are all in the same network. $ ipcalc 10.60.130.1/0xc000 address : 10.60.130.1 netmask : 255.255.192.0 (0xc000) network : 10.60.128.0 /18 broadcast : 10.60.191.255 host min : 10.60.128.1 host max : 10.60.191.254 hosts/net : 16382 Your chosen netmask makes the first 18 bits of the IP address be the network address, so 10.60.128 [...] 10.60.191 are all in the same network. This part of the address should be different between interfaces.
Default Route Issues
Greetings I have the following computer network: Internet - OpenBSD 4.2 --- Internal LAN I I I Wireless Card Wireless Card Soekris 5501 --- Wireless Card I I I Wired Lan Wireless cards are all ral() Soekriss 5501 is also running OpenBSD 4.2 The Soekris works fine as a bridge or just as doing IPforwarding. The default route needs to be thru the wireless card and works fine untill I add an IP for the wired lan vr() or I add it to the bridge: up ral0 up ral1 -- works great (and yes the up) but as soon as I add the vr0 the default route goes to the wired lan vr0. The router/ipforwarder works great until I add an ip to the vr0, then once again the default route goes to the vr0. I have tried to set the default route thru the hostname.ral0 file but it still goes to vr0. mygate points to the OpenBSD server but the default route still goes to vr0. Any Ideas on how to get the default pointing to ral0 on boot. Bret
Re: Default Route Issues
You should probably post relevant config files and netstat output. Your drawing didn't come out very well. On Dec 10, 2007 6:58 PM, Bret [EMAIL PROTECTED] wrote: Greetings I have the following computer network: Internet - OpenBSD 4.2 --- Internal LAN I I I Wireless Card Wireless Card Soekris 5501 --- Wireless Card I I I Wired Lan Wireless cards are all ral() Soekriss 5501 is also running OpenBSD 4.2 The Soekris works fine as a bridge or just as doing IPforwarding. The default route needs to be thru the wireless card and works fine untill I add an IP for the wired lan vr() or I add it to the bridge: up ral0 up ral1 -- works great (and yes the up) but as soon as I add the vr0 the default route goes to the wired lan vr0. The router/ipforwarder works great until I add an ip to the vr0, then once again the default route goes to the vr0. I have tried to set the default route thru the hostname.ral0 file but it still goes to vr0. mygate points to the OpenBSD server but the default route still goes to vr0. Any Ideas on how to get the default pointing to ral0 on boot. Bret -- Ticketmaster and Ticketweb suck, but everyone knows that: http://ticketmastersucks.org http://lodesertprotosites.org Dethink to survive - Mclusky