# bash /etc/netstart

>From there, you're doing it wrong.

On 6/19/10, Jean-Frangois SIMON <jfsimon1...@gmail.com> wrote:
> Hi All,
>
> I have some problem with network in OpenBSD 4.7.
>
> The netstart script does strange output :
>
> # bash /etc/netstart
> /etc/netstart: line 44: set: -A: invalid option
> set: usage: set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...]
> WARNING: /etc/hostname.re0 is insecure, fixing permissions
> DHCPREQUEST on re0 to 255.255.255.255 port 67
> DHCPACK from 192.168.30.1 (00:19:4b:07:6c:ad)
> bound to 192.168.30.11 -- renewal in 302400 seconds.
> /etc/netstart: line 44: set: -A: invalid option
> set: usage: set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...]
> WARNING: /etc/hostname.re1 is insecure, fixing permissions
> /etc/netstart: line 284: syntax error in conditional expression: unexpected
> token `('
> /etc/netstart: line 284: syntax error near `@(*'
> /etc/netstart: line 284: `        [[ $gw == @(*:*) ]] && continue'
>
> One point being insecure permissions but they look good :# ls -l
> /etc/hostname.*
>
> -rw-------  1 root  wheel  444 Jun 19 21:15 /etc/hostname.bridge0
> -rw-------  1 root  wheel    5 Jun 13 01:53 /etc/hostname.re0
> -rw-------  1 root  wheel   66 Jun 13 20:18 /etc/hostname.re1
>
> The other fact being not creating the bridge :
> # cat
> hostname.bridge0
>
> add re1 -learn re1
> rule pass in on re1 src 00:25:32:1b:d5:10 tag macok
> rule pass in on re1 src 00:08:64:a8:71:81 tag macok
> up
>
> #
> ifconfig
>
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33160
>     priority: 0
>     groups: lo
>     inet6 ::1 prefixlen 128
>     inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
>     inet 127.0.0.1 netmask 0xff000000
> re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>     lladdr 00:25:32:1b:d5:10
>     priority: 0
>     groups: egress
>     media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
>     status: active
>     inet6 fe80::225:22ff:fe1b:d510%re0 prefixlen 64 scopeid 0x1
>     inet 192.168.30.11 netmask 0xffffff00 broadcast 192.168.30.255
> re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>     lladdr 00:08:64:a8:71:81
>     priority: 0
>     media: Ethernet autoselect (none)
>     status: no carrier
>     inet6 fe80::208:54ff:fea8:7181%re1 prefixlen 64 scopeid 0x2
>     inet 192.168.100.1 netmask 0xffffff00 broadcast 192.168.100.255
> enc0: flags=0<> mtu 1536
>     priority: 0
> pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33160
>     priority: 0
>     groups: pflog
>
> May I have you help to sort it out ?
>
> Thank you,
>
> Jean-Frangois

Reply via email to