๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.bsd
Article #21263

Re: VLAN na FreeBSD

#21263
From: Wangog
Date: Mon, 15 Mar 2010 09:14
33 lines
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
Technical Details
Message-ID: <hnktp1$emg$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <hnd8uf$sm9$1@inews.gazeta.pl> <hnfv5n$dr1$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Wangog <Wangog78@gazeta.pl>
Newsgroups: pl.comp.os.bsd
Subject: Re: VLAN na FreeBSD
Date: Mon, 15 Mar 2010 10:14:09 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 33
Message-ID: <hnktp1$emg$1@inews.gazeta.pl>
References: <hnd8uf$sm9$1@inews.gazeta.pl> <hnfv5n$dr1$1@news.onet.pl>
NNTP-Posting-Host: 193-0-65-67.noname.net.icm.edu.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1268644449 15056 193.0.65.67 (15 Mar 2010 09:14:09 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Mon, 15 Mar 2010 09:14:09 +0000 (UTC)
X-User: wangog78
In-Reply-To: <hnfv5n$dr1$1@news.onet.pl>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit