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=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
    groups: lo
    inet 127.0.0.1 netmask 0xff000000
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
ral0: flags=8843<UP,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 0xffffc000 broadcast 10.60.191.255
    inet6 fe80::208:a1ff:fead:a32%ral0 prefixlen 64 scopeid 0x1
ral1: flags=8843<UP,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 0xffffc000 broadcast 10.60.191.255
    inet6 fe80::208:a1ff:feb5:64e2%ral1 prefixlen 64 scopeid 0x2
fxp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
    lladdr 00:e0:81:65:f2:4d
    media: Ethernet autoselect (none)
    status: no carrier
em0: flags=8802<BROADCAST,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:
Destination        Gateway            Flags    Refs      Use    Mtu
Interface
default            10.60.128.1        UGS         3       89      -
ral0
10.60.128/18       link#1             UC          1        0      -
ral0
10.60.128.1        00:08:a1:ad:0a:46  UHLc        1        8      -
ral0
127/8              127.0.0.1          UGRS        0        0  33224   lo0
127.0.0.1          127.0.0.1          UH          1        0  33224   lo0
224/4              127.0.0.1          URS         0        0  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=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
    groups: lo
    inet 127.0.0.1 netmask 0xff000000
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
ral0: flags=8843<UP,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 0xffffc000 broadcast 10.60.191.255
    inet6 fe80::208:a1ff:fead:a32%ral0 prefixlen 64 scopeid 0x1
ral1: flags=8843<UP,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 0xffffc000 broadcast 10.60.191.255
    inet6 fe80::208:a1ff:feb5:64e2%ral1 prefixlen 64 scopeid 0x2
fxp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
    lladdr 00:e0:81:65:f2:4d
    media: Ethernet autoselect (none)
    status: no carrier
em0: flags=8843<UP,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 0xffffc000 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:
Destination        Gateway            Flags    Refs      Use    Mtu
Interface
default            10.60.128.1        UGS         0        0      -
ral0
10.60.128/18       link#4             UC          1        0      -   em0
10.60.128.1        link#4             UHLc        2       13      -   em0
127/8              127.0.0.1          UGRS        0        0  33224   lo0
127.0.0.1          127.0.0.1          UH          1        0  33224   lo0
224/4              127.0.0.1          URS         0        0  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 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.


Like Stuart said before, you are using the same subnet in all your
interfaces, maybe this will help:
look at IP on each interfaces:
1. ral0 : 10.60.128.2/18
2. ral1 : 10.60.129.1/18
3. em0  : 10.60.130.1/18
They all in the same network, right? this is not how routing works, this
is done if you intend to create a bridge machine, which required you to
create a bridge, and adding default route in your problematic machine will
only matters for your bridge machine, not to any other machine connected
to your bridge.
Further info: man bridge, man hostname.if, man bridgename.if.
Hopefully this help,
Cheers,


Insan

Reply via email to