1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-08 01:24:57 +08:00

finish mtu

This commit is contained in:
fumiama
2022-01-01 20:32:26 +08:00
parent 400a5a86e5
commit 78437abe0e
2 changed files with 2 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
package lower
func (n *NIC) Up() {
execute("ifconfig", n.ifce.Name(), "mtu", n.mtu)
execute("ifconfig", n.ifce.Name(), "mtu", n.mtu) // max: 9159
execute("ifconfig", n.ifce.Name(), "inet", n.ip, n.ip, "up")
execute("route", "add", n.subnet, "-interface", n.ifce.Name())
for _, c := range n.cidrs {