Henning Brauer a icrit :
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2006-12-08 20:15]:
you need on openbsd

ifconfig vlan0 create
ifconfig vlan0 vlan 2 vlandev rl0 up

no. create is implicit.

This is what I already did and tried for each port configured on the switch:

1- interface FastEthernet0/23
     switchport trunk encapsulation dot1q
     switchport trunk allowed vlan 2-8
     switchport mode trunk
     spanning-tree portfast
     no cdp enable

2- And then the ports for the vlans ...
  interface FastEthernet0/2
     switchport access vlan 2
     spanning-tree portfast
     no cdp enable

I did the same for all the ports on the switch and then .. write memory.

3- This is what I have in my /etc/hostname.vlan0
  10.0.0.1 255.255.255.0 vlan 2 vlandev rl0

And the same for all the vlans ...

4- Finally the config in /etc/pf.conf for natting ...
  nat on tun0 from 10.0.0.0/24 to any -> tun0
 And again the same for all the vlans ...

So I'm using a Class C mask ... maybe I should change that ? Is there something I should add in /etc/pf.conf ?


Thank you very much for your answers,

Mik

Reply via email to