Thread View: pl.comp.os.bsd
4 messages
4 total messages
Started by Wangog
Fri, 12 Mar 2010 11:35
VLAN na FreeBSD
Author: Wangog
Date: Fri, 12 Mar 2010 11:35
Date: Fri, 12 Mar 2010 11:35
16 lines
1213 bytes
1213 bytes
WItam
Jest tak: Internet---Router FreeBSD---Switch (z VLAN)---LAN 10.1.1.0/24
---LAN 10.1.2.0/24
Chcialbym istniejaca siec 10.1.1.0/24 podzielic na 2 vlany. Jak mam
skonfigurowac interfejs BSD od strony lanu?
Chodzi mi tylko o podpowiedz a nie gotowa regulke?
Uzyc
ifconfig vlan1 create
ifconfig vlan2 create
i potem
ifconfig vlan1 10.1.1.0 netmask 255.255.255.0 vlan 1 vlandev ep0
ifconfig vlan2 10.1.2.0 netmask 255.255.255.0 vlan 2 vlandev ep0
Czy tak?
Re: VLAN na FreeBSD
Author: gumis
Date: Sat, 13 Mar 2010 12:07
Date: Sat, 13 Mar 2010 12:07
27 lines
1608 bytes
1608 bytes
Wangog pisze: > WItam > > Jest tak: Internet---Router FreeBSD---Switch (z VLAN)---LAN 10.1.1.0/24 > ---LAN 10.1.2.0/24 > > Chcialbym istniejaca siec 10.1.1.0/24 podzielic na 2 vlany. Jak mam > skonfigurowac interfejs BSD od strony lanu? > Chodzi mi tylko o podpowiedz a nie gotowa regulke? > Uzyc > ifconfig vlan1 create > ifconfig vlan2 create > i potem > ifconfig vlan1 10.1.1.0 netmask 255.255.255.0 vlan 1 vlandev ep0 > ifconfig vlan2 10.1.2.0 netmask 255.255.255.0 vlan 2 vlandev ep0 > > Czy tak? > > Tak, a potem dopisac do rc.confa: cloned_interfaces="vlan1 vlan2" ifconfig_vlan1="inet 10.1.1.1/24 vlan 1 vlandev ep0" ifconfig_vlan2="inet 10.1.2.1/24 vlan 2 vlandev ep0" Zwróc uwage na swoje ip, 0 na koncu napewno nie jest poprawne. gumis
Re: VLAN na FreeBSD
Author: Wangog
Date: Mon, 15 Mar 2010 09:14
Date: Mon, 15 Mar 2010 09:14
33 lines
1906 bytes
1906 bytes
Czyli po prostu nadaje unikalny adres IP interfejsowi vlan1 np. 10.1.2.1 Potem moge np. w regulkach firewalla uzywac nazwy interfajsu vlan1 i np. odblokowac port 2000 zeby jakas usluga dzialala pomiedzy vlanami? Pozdrawiam > Wangog pisze: >> WItam >> >> Jest tak: Internet---Router FreeBSD---Switch (z VLAN)---LAN 10.1.1.0/24 >> ---LAN 10.1.2.0/24 >> >> Chcialbym istniejaca siec 10.1.1.0/24 podzielic na 2 vlany. Jak mam >> skonfigurowac interfejs BSD od strony lanu? >> Chodzi mi tylko o podpowiedz a nie gotowa regulke? >> Uzyc >> ifconfig vlan1 create >> ifconfig vlan2 create >> i potem >> ifconfig vlan1 10.1.1.0 netmask 255.255.255.0 vlan 1 vlandev ep0 >> ifconfig vlan2 10.1.2.0 netmask 255.255.255.0 vlan 2 vlandev ep0 >> >> Czy tak? >> >> > Tak, a potem dopisac do rc.confa: > > cloned_interfaces="vlan1 vlan2" > ifconfig_vlan1="inet 10.1.1.1/24 vlan 1 vlandev ep0" > ifconfig_vlan2="inet 10.1.2.1/24 vlan 2 vlandev ep0" > > Zwróc uwage na swoje ip, 0 na koncu napewno nie jest poprawne. > gumis
Re: VLAN na FreeBSD
Author: gumis
Date: Mon, 15 Mar 2010 11:45
Date: Mon, 15 Mar 2010 11:45
7 lines
1152 bytes
1152 bytes
Wangog pisze: > Czyli po prostu nadaje unikalny adres IP interfejsowi vlan1 np. 10.1.2.1 > Potem moge np. w regulkach firewalla uzywac nazwy interfajsu vlan1 i np. > odblokowac port 2000 zeby jakas usluga dzialala pomiedzy vlanami? > Tak, możesz potem używać nazwy interfejsu w regułach firewalla. gumis
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads