fix(network): disable cellular IPv6 default-route hijack and set USB MTU 1360

This commit is contained in:
shenlei
2026-11-18 10:48:53 +09:00
parent 69fd8df15a
commit e7732a9ff9
6 changed files with 14 additions and 12 deletions
+2 -2
View File
@@ -262,7 +262,7 @@ def build_nmcli_setup_commands(con_name=CONNECTION_NAME, apn='cmnet', ifname='*'
'gsm.auto-config', 'yes',
'connection.autoconnect', 'no',
'ipv4.route-metric', '700',
'ipv6.route-metric', '700',
'ipv6.method', 'disabled',
'connection.interface-name', ifname if ifname != '*' else ''])
else:
cmd = ['nmcli', 'connection', 'add',
@@ -273,7 +273,7 @@ def build_nmcli_setup_commands(con_name=CONNECTION_NAME, apn='cmnet', ifname='*'
'gsm.auto-config', 'yes',
'connection.autoconnect', 'no',
'ipv4.route-metric', '700',
'ipv6.route-metric', '700']
'ipv6.method', 'disabled']
commands.append(cmd)
return commands