V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
helieting
V2EX  ›  问与答

freenas 下装 lede 可行么

  •  
  •   helieting · 2019-08-02 18:37:36 +08:00 · 2575 次点击
    这是一个创建于 1964 天前的主题,其中的信息可能已经有所发展或是发生改变。

    有台 freenas (非虚拟机),里面装 lede,想要实现软路由,为了折腾不考虑其他实现方法

    网卡情况,板载一口( re1 ),一张一口( re0 ),一张 2 口( igb0,igb1 ),共 4 个网口。

    目前进度,freenas 开了个 vm,装好了 lede,可以进系统。

    困难是不了解系统网络和虚拟机的知识。求教怎么设置网络,怎么样思路

    % ifconfig
    igb0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
            options=2400b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,RXCSUM_IPV6>
            ether 6c:b3:11:32:af:1c
            hwaddr 6c:b3:11:32:af:1c
            nd6 options=9<PERFORMNUD,IFDISABLED>
            media: Ethernet autoselect
            status: no carrier
    igb1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
            options=6403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
            ether 6c:b3:11:32:af:1d
            hwaddr 6c:b3:11:32:af:1d
            nd6 options=9<PERFORMNUD,IFDISABLED>
            media: Ethernet autoselect
            status: no carrier
    re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
            options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
            ether e8:4e:06:66:8e:39
            hwaddr e8:4e:06:66:8e:39
            inet 192.168.50.200 netmask 0xffffff00 broadcast 192.168.50.255 
            nd6 options=9<PERFORMNUD,IFDISABLED>
            media: Ethernet autoselect (1000baseT <full-duplex>)
            status: active
    re1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
            options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
            ether fc:aa:14:ad:13:3d
            hwaddr fc:aa:14:ad:13:3d
            nd6 options=9<PERFORMNUD,IFDISABLED>
            media: Ethernet autoselect (none)
            status: no carrier
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
            options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
            inet6 ::1 prefixlen 128 
            inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
            inet 127.0.0.1 netmask 0xff000000 
            nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
            groups: lo 
    bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
            ether 02:a8:e3:24:93:00
            nd6 options=1<PERFORMNUD>
            groups: bridge 
            id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
            maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
            root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
            member: vnet0:6 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                    ifmaxaddr 0 port 9 priority 128 path cost 2000
            member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                    ifmaxaddr 0 port 3 priority 128 path cost 20000
            member: re1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                    ifmaxaddr 0 port 4 priority 128 path cost 55
    vnet0:6: flags=8942<BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
            description: associated with jail: emby_2 as nic: epair0b
            options=8<VLAN_MTU>
            ether 02:ff:60:f9:c5:66
            hwaddr 02:5a:d0:00:09:0a
            nd6 options=1<PERFORMNUD>
            media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
            status: active
            groups: epair 
    bridge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
            ether 02:a8:e3:24:93:01
            nd6 options=1<PERFORMNUD>
            groups: bridge 
            id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
            maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
            root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
            member: igb1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                    ifmaxaddr 0 port 2 priority 128 path cost 2000000
    bridge2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
            ether 02:a8:e3:24:93:02
            nd6 options=1<PERFORMNUD>
            groups: bridge 
            id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
            maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
            root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
            member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                    ifmaxaddr 0 port 6 priority 128 path cost 2000000
            member: igb0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                    ifmaxaddr 0 port 1 priority 128 path cost 2000000
    tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
            description: Attached to lede
            options=80000<LINKSTATE>
            ether 00:bd:61:c9:44:00
            hwaddr 00:bd:61:c9:44:00
            nd6 options=1<PERFORMNUD>
            media: Ethernet autoselect
            status: active
            groups: tap 
            Opened by PID 11352
    
    3 条回复    2019-08-02 23:09:13 +08:00
    msg7086
        1
    msg7086  
       2019-08-02 22:27:48 +08:00   ❤️ 1
    两嘴网卡直接直通进虚拟机做 WAN 和 LAN 就好了。
    helieting
        2
    helieting  
    OP
       2019-08-02 23:06:38 +08:00
    要 LAN 还要连给 nas 里的其他虚拟机,怎么连过去
    msg7086
        3
    msg7086  
       2019-08-02 23:09:13 +08:00
    @helieting 我是把 LAN 和母鸡都接在交换机上。其他连接方式相对比较麻烦……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5627 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 06:34 · PVG 14:34 · LAX 22:34 · JFK 01:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.