root@Snail:~# synonet -
Copyright (c) 2003-2023 Synology Inc. All rights reserved.
Usage: synonet
--help
--show
--dhcp iface
--manual iface ip mask
--check ip {mask}
--la_new bondX {1|2} ethX ethX
--la_del bondX
--la_enum
--la_get bondX
--la_exist
--set_gateway gateway
--set_dns dns
--dns_update
--set_mtu iface MTU
--set_hostname new_hostname
--get_hostname
--vlan_enum
--vlan_create device vlan_id {dhcp| ip mask}
--vlan_remove vlan_interface
--vlan_exist
PPPoE
--set_pppoe iface username password (service id 1)
--get_if pppoe (service id 1)
(only support pppoe now)
--pppoe-create port_id username password
WARNING: please don't use --pppoe-create as possible.
--pppoe-check-status service_id
--pppoe-start-all
--pppoe-stop-all
--pppoe-start-byport
--pppoe-stop-byport
<NOTE that 'start' or 'stop' PPPoE only affects enabled PPPoE service(s).>
--pppoe-change-interface old_if new_if
--pppoe-get-base-interface ifname
--wake xx:xx:xx:xx:xx:xx ethX
--get_block ethX
--set_block ethX {ha|aha|virtualization|mailplus} {true|false}
--dhcp_server_change_interface old_interface new_interface
--get_mac_addr iface {original | ha}
--set_ip -4/-6 ethx {flush | add | del} {empty | ip/prefix_len}
ex1 : --set_ip -4 eth0 add 192.168.55.66/16
ex2 : --set_ip -6 eth0 del 2001:b011:4002:f0:211:32ff:fe22:efcb/64
ex3 : --set_ip -4 eth0 flush
ex4 : --set_ip -6 eth0 flush
note : it's different from --manual, ifcfg doesn't modified
--ipv6-init (Do NOT use this after system booting)
--ip_alias_list iface
--ip_alias_add iface ip/prefix_len
--ip_alias_delete ip
--ip_alias_apply [ifname [subnet]] (empty for all if/subnet)
--ip_alias_unapply [ifname [subnet]] (empty for all if/subnet)
root@Snail:~# synonetdtool
No argument
Copyright (c) 2003-2023 Synology Inc. All rights reserved.
Usage: synonetdtool [action] [arg1] [arg2] [arg3]...
Network actions are:
--set-slave-data type interface slave(yes/no) {set slave info for an interface}
--get-interface-by-class type class {get specific interfaces by class}
--get-gateway-list-data type {get gateway list data}
--get-route-tables type
--refresh-gateway type {refresh the default gateway, type: -4,-6 or all}
--reset-ipv6-module <ifname> {reset the ipv6 module}
--is-server-ready {Check if synonetd is ready}
--del-gateway-info type interface {del a gateway info to /etc/route-mgt/gateway_priority}
--add-gateway-info type priority interface gateway dns [class] {Add a gateway info to /etc/route-mgt/gateway_priority}
--gen-DUID
--add-policy-route-rule type service interface ip mask/prefix-length gateway {add a route rule to policy table}
--del-policy-route-rule type service interface {delete a route rule from policy table}
--enable-route-table type interface source {enable policy route table for interface}
--disable-route-table type interface {disable policy route table for interface}
--refresh-route-table type interface source {refresh policy route table for interface}
--enable-multi-gateway
--disable-multi-gateway
--enable-multi-gateway-v6
--disable-multi-gateway-v6
--init-ipv6-router
--get-ipv6-router-interface interface
--apply-new-prefix
--get-internal-network
--refresh-static-route-rules type {refresh static route rules, type: -4 -6 or empty is both}
--copy-gateway-info type src_ifname dest_ifname
评论区