netconf -h
Usage: netconf [OPTION]...
Display network information and change configuration.
-h, --help display help page
-l, --lan display Link status and MAC address
-d, --domain display Domain mode, FQDN, Primary and Secondary DNS
-4, --ipv4 display IPv4 Mode, Address, Netmask and Gateway
-6, --ipv6 display IPv6 Mode, Addresses and Gateway
Set commands are used to modify the settings.
-s, --set-lan <link speed>
Link speed values:
auto Auto negotiation
10hf 10 Mbps - Half duplex
10ff 10 Mbps - Full duplex
100hf 100 Mbps - Half duplex
100ff 100 Mbps - Full duplex
1000ff 1.0 Gbps - Full duplex
-f, --set-domain hostname <hostname> set custom hostname
-f, --set-domain <mode>
Mode values:
- set custom Network address, Netmask and Gateway:
manual <domain name> <primary DNS> <secondary DNS>
- automatically set Domain name, Primary and Secondary DNS
dhcp
-i, --set-ipv4 <mode>
Mode values:
- set custom Network address, Netmask and Gateway
manual <network> <mask> <gateway>
- automatically set Network address, Netmask and Gateway
dhcp
-x, --set-ipv6 <status>
Status values:
- enable IPv6
enable
- disable IPv6
disable
-x, --set-ipv6 <mode>
Mode values:
- set custom Network address, Prefix and Gateway
manual <network> <prefix> <gateway>
- automatically set Network address, Prefix and Gateway
router
Examples of usage:
-> Display Link status and MAC address
netconf -l
-> Set Auto negotiation to Link
netconf --set-lan auto
-> Set custom hostname
netconf --set-domain hostname ups-00-00-00-00-00-00
-> Set Adress, Netmask and Gateway
netconf --set-ipv4 manual 192.168.0.1 255.255.255.0 192.168.0.2
-> Disable IPv6