[操作疑難] interfaces -> netplan 翻譯

有人可以幫助翻譯它???
  1. auto lo
  2. iface lo inet loopback

  3. auto eno1
  4. iface eno1 inet dhcp
  5.         mtu 9000

  6. auto br0
  7. iface br0 inet static
  8.         address 192.168.1.1
  9.         netmask 255.255.255.0
  10.         broadcast 192.168.1.255
  11.         network 192.168.1.0
  12.         getway 192.168.1.1
  13.         bridge_ports enp5s0f0 enp5s0f1 enp6s0f0 enp6s0f1
  14.         bridge_stp off
  15.         bridge_fd 0
  16.         bridge_waitport 0
  17.         dns-nameservers 192.168.1.1 218.102.23.77 218.102.62.71 127.0.0.53
  18.         dns-domain 192.168.1.1

  19. auto wlp2s0
  20. iface wlp2s0 inet manual
  21.         hostapd /etc/hostapd/hostapd.conf
複製代碼

翻譯乜嘢? bridge 嗰 part?

https://wiki.debian.org/BridgeNetworkConnections
只係估吓:-
eno1 係去 isp,
4條 local lan(enp5s0f0 enp5s0f1 enp6s0f0 enp6s0f1)bridge 去 single ip
192.168.1.1 再經 en01 出街?
又係 gateway,又係 dhcpd ?搞到好似一個 router?

TOP

回覆 2# cal22cal

就係一隻router

TOP

bridge 果part 攪唔掂

TOP

行pfsense/opnsense仲好啦, 全web gui搞掂

TOP

本帖最後由 cal22cal 於 2019-3-10 10:16 編輯

現成 NAS NAT purpose O/S 係方便,不過如果想用盡部機,就要麻煩多啲。

响呢道,set bridge options 之後,bridge 可以諗係一個 virtual interface,
其它應該冇咩特別,好似2張 nic 嘅 NAS NAT 咁上下,
不過個 iptable 就要用個 bridge interface/ip,

有H/W响手,可以慢慢試喇。

Edit:-
Sorry,手民之誤。

TOP

回覆 6# cal22cal
可能真係冇咩特別,不過我就係攪唔掂,唔係都唔駛請教各位師兄喇

上網search左好耐,睇左好多教學,都係唔識
左抄右抄,都係下面咁上下,但係一行netplan generate就error "br0: interface enp5s0f1 is not defined"
  1. network:
  2.   version: 2
  3.   renderer: NetworkManager
  4.   ethernets:
  5.     eno1:
  6.       dhcp4: no
  7.       dhcp6: no
  8.   bridges:
  9.     br0:
  10.       interfaces: [enp5s0f0, enp5s0f1, enp6s0f0, enp6s0f1]
  11.       dhcp4: true
  12.       dhcp6: no
複製代碼

TOP

回覆 7# Ultraman
show all nic name try:-
  1. sudo lshw -class network | grep -A 1 "bus info" | grep name | awk -F': ' '{print $2}'
複製代碼
or
  1. sudo ifconfig -a
複製代碼
or
  1. sudo ip link show
複製代碼

TOP

本帖最後由 Ultraman 於 2019-3-10 22:15 編輯
  1. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
  2.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  3. 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
  4.     link/ether dc:fe:07:09:7b:9d brd ff:ff:ff:ff:ff:ff
  5. 3: enp5s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 9000 qdisc fq_codel master br0 state DOWN mode DEFAULT group default qlen 1000
  6.     link/ether 00:1b:21:94:0c:a9 brd ff:ff:ff:ff:ff:ff
  7. 4: enp5s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 9000 qdisc fq_codel master br0 state DOWN mode DEFAULT group default qlen 1000
  8.     link/ether 00:1b:21:94:0c:a8 brd ff:ff:ff:ff:ff:ff
  9. 5: enp6s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 9000 qdisc fq_codel master br0 state DOWN mode DEFAULT group default qlen 1000
  10.     link/ether 00:1b:21:94:0c:ab brd ff:ff:ff:ff:ff:ff
  11. 6: enp6s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 9000 qdisc fq_codel master br0 state DOWN mode DEFAULT group default qlen 1000
  12.     link/ether 00:1b:21:94:0c:aa brd ff:ff:ff:ff:ff:ff
  13. 7: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
  14.     link/ether 00:1b:21:94:0c:a8 brd ff:ff:ff:ff:ff:ff
  15. 8: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP mode DEFAULT group default qlen 1000
  16.     link/ether 94:65:9c:f8:29:42 brd ff:ff:ff:ff:ff:ff
複製代碼
edit:- 頭先D線未插好,所以D狀態顯示有出入︔而家呢個樣先係正確

TOP

本帖最後由 cal22cal 於 2019-3-10 20:52 編輯

回覆 9# Ultraman
試吓
  1. ifconfig enp5s0f1 down
  2. ifconfig br0 up
複製代碼
Edit:-
呀,你用緊 network manager 啵,咁會唔會係咁。

https://askubuntu.com/questions/ ... manager-or-networkd

TOP