Date: Tue, 31 Dec 2013 09:57:42 -0800 From: Adrian Chadd <adrian@freebsd.org> To: Anton <felix_mail@mail.ru> Cc: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: Re[2]: RB450G compiling the kernel Message-ID: <CAJ-VmonXYa8tPy3RXB-HgBM4-Ob0gkct%2BpUXMdaNsKgrV%2BjZ8g@mail.gmail.com> In-Reply-To: <1388478201.16007730@f292.i.mail.ru> References: <1388404360.131024714@f310.i.mail.ru> <CAJ-VmomzUv5CSK67VdMMnsPvS4LkRvQMqkg_sMT_fzNti30P1g@mail.gmail.com> <1388478201.16007730@f292.i.mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Which kernel configuration file are you building with? -a On 31 December 2013 00:23, Anton <felix_mail@mail.ru> wrote: > Adrian thanks! > > I resolved the problem. There was need to add both options in hints file = at > the same time. > > hints.argemdio.0.at=3D"nexus0" > hints.argemdio.0. > .... > hints.arge.0.at=3D"nexus0" > hints.arge.0. > .... > > =F0=CF=CE=C5=C4=C5=CC=D8=CE=C9=CB, 30 =C4=C5=CB=C1=C2=D2=D1 2013, 11:38 -= 08:00 =CF=D4 Adrian Chadd > <adrian@freebsd.org>: > > On 30 December 2013 03:52, =E1=CE=D4=CF=CE =F0=C5=D4=D5=C8=CF=D7 <felix_m= ail@mail.ru> wrote: >> >> Hi, >> Can you help me? How can I use AR7161 + AR8316 as two interfaces availab= le >> to the kernel? Etherswitch is very good solution, but he's black box for= me. >> If I try to compile kernel with switch - all is Ok, but in this case sys= tem >> have only one arge1. >> I need to route traffic between arge0 and arge1 ports... How, how can I = do >> it? :) > > Well, it depends on how it's wired up. > > The AR8316 (and other atheros switches) have an option to peel off one > of the ports as a dedicated PHY port, for situations where you have > two MACs on the SoC and you want to have a WAN port and multiple LAN > ports. > > Theres three ways to do it: > > * have one MAC port, map all switch ports to it, then peel off lan/wan > via VLAN ids > * have two MAC ports, have one port dedicated as a pass-through PHY > for the WAN port and the rest be switch ports for the LAN (vlan or > otherwise) > * a hybrid - have two MAC ports, and just map them using vlan ids or > per-port vlans as required. > > So it boils down to whether the RB450G wires both arge interfaces to > the switch. If so, you can peel off a dedicated WAN PHY/port by > configuring up the 'phy4cpu' option in the hints file. Otherwise it's > vlans all the way down. > > > -adrian > > > > -- > Anton
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonXYa8tPy3RXB-HgBM4-Ob0gkct%2BpUXMdaNsKgrV%2BjZ8g>