Skip to content

Instantly share code, notes, and snippets.

@nmathew
Created November 16, 2021 05:07
Show Gist options
  • Select an option

  • Save nmathew/0af68c4370825b2d75eb9b6e68a89859 to your computer and use it in GitHub Desktop.

Select an option

Save nmathew/0af68c4370825b2d75eb9b6e68a89859 to your computer and use it in GitHub Desktop.
nmstate debug logs
sles@sles-master:~> sudo nmstatectl show
2021-11-16 05:06:18,990 root DEBUG NetworkManager version 1.32.12
2021-11-16 05:06:18,992 root DEBUG Async action: Retrieve applied config: ethernet eth0 started
2021-11-16 05:06:18,992 root DEBUG Async action: Retrieve applied config: ethernet eth1 started
2021-11-16 05:06:18,994 root DEBUG Async action: Retrieve applied config: ethernet eth0 finished
2021-11-16 05:06:18,995 root DEBUG Async action: Retrieve applied config: ethernet eth1 finished
2021-11-16 05:06:18,997 root DEBUG Interface ethernet.eth1 found. Merging the interface information.
---
dns-resolver:
config: {}
running: {}
route-rules:
config: []
routes:
config:
- destination: 192.0.2.1/32
metric: 150
next-hop-address: ''
next-hop-interface: eth1
table-id: 254
- destination: 198.51.100.0/24
metric: 150
next-hop-address: 192.0.2.1
next-hop-interface: eth1
table-id: 254
running:
- destination: fe80::/64
metric: 256
next-hop-address: ''
next-hop-interface: eth0
table-id: 254
- destination: 0.0.0.0/0
metric: 0
next-hop-address: 10.100.11.1
next-hop-interface: eth0
table-id: 254
- destination: 10.100.11.0/24
metric: 0
next-hop-address: ''
next-hop-interface: eth0
table-id: 254
- destination: 10.100.11.0/24
metric: 101
next-hop-address: ''
next-hop-interface: eth1
table-id: 254
- destination: 169.254.169.254/32
metric: 0
next-hop-address: 10.100.11.2
next-hop-interface: eth0
table-id: 254
- destination: 192.0.2.1/32
metric: 150
next-hop-address: ''
next-hop-interface: eth1
table-id: 254
- destination: 198.51.100.0/24
metric: 150
next-hop-address: 192.0.2.1
next-hop-interface: eth1
table-id: 254
interfaces:
- name: eth0
type: ethernet
state: up
accept-all-mac-addresses: false
ipv4:
enabled: true
address:
- ip: 10.100.11.110
prefix-length: 24
ipv6:
enabled: true
address:
- ip: fe80::f816:3eff:fe80:431e
prefix-length: 64
mac-address: FA:16:3E:80:43:1E
mtu: 8942
- name: eth1
type: ethernet
state: up
accept-all-mac-addresses: false
ipv4:
enabled: true
address:
- ip: 10.100.11.133
prefix-length: 24
dhcp: false
ipv6:
enabled: false
address: []
autoconf: false
dhcp: false
lldp:
enabled: false
mac-address: FA:16:3E:23:88:B5
mtu: 8942
- name: lo
type: unknown
state: up
accept-all-mac-addresses: false
ipv4:
enabled: true
address:
- ip: 127.0.0.1
prefix-length: 8
ipv6:
enabled: true
address:
- ip: ::1
prefix-length: 128
mac-address: 00:00:00:00:00:00
mtu: 65536
ovs-db:
external_ids:
hostname: sles-master
rundir: /run/openvswitch
system-id: 6e66e910-f570-43ef-b1bc-78128571e564
other_config: {}
sles@sles-master:~>
sles@sles-master:~> nmcli d
DEVICE TYPE STATE CONNECTION
eth0 ethernet connected (externally) eth0
eth1 ethernet connected eth1
lo loopback unmanaged --
sles@sles-master:~>
sles@sles-master:~> cat nmstate.yaml
interfaces:
- name: eth1
state: up
type: ethernet
ipv4:
enabled: true
dhcp: false
address:
- ip: 10.100.11.133
prefix-length: 24
sles@sles-master:~>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment