ports (1666B)
1 # UNOS switch port configuration 2 # 3 # Read from /etc/network/ports, or if that file is absent, from every 4 # /etc/network/ports.d/*.cnf drop-in. 5 # 6 # SCOPE 7 # 8 # This file covers physical-layer properties of switch ports only. Anything 9 # the Linux kernel already models on a netdev belongs in 10 # /etc/network/interfaces.d/ and is applied by ifup: 11 # 12 # addresses, gateway, netmask, metric ... iface <name> inet static 13 # mtu .................................. mtu <bytes> 14 # mac address .......................... hwaddress <addr> 15 # admin state .......................... auto / allow-hotplug / ifdown 16 # vlans ................................ iface swp1.100 17 # 18 # linkd learns all of that from netlink and mirrors it into the ASIC, so 19 # configuring it here as well would create two sources of truth for one value. 20 # Directives belonging to ifupdown are rejected rather than ignored. 21 # 22 # DIRECTIVES 23 # 24 # speed <mbit> port speed in Mbit/s 25 # fec off|auto|rs|baser forward error correction 26 # autoneg on|off 27 # breakout <profile> e.g. 4x25g -- splits one cage into several 28 # ports. Structural: it decides which netdevs 29 # exist at all, so it is applied before ifup runs. 30 # 31 # On generic x86_64 there is no ASIC and none of these apply; the kernel 32 # backend ignores them and Linux does the forwarding. 33 34 source ports.d/*.cnf 35 36 port swp1 37 speed 25000 38 fec rs 39 autoneg off 40 41 port swp2 42 speed 25000 43 fec rs 44 autoneg off 45 46 # 100G uplink 47 port swp49 48 speed 100000 49 fec rs 50 51 # 100G cage split into 4x25G -- yields swp50s0..swp50s3 52 port swp50 53 breakout 4x25g 54 speed 25000 55 fec rs