Skip to content

Commit fbaca12

Browse files
authored
Merge pull request #136 from joeysk2012/update-readme
Update README.md
2 parents 82d7743 + 8c06a44 commit fbaca12

File tree

1 file changed

+57
-51
lines changed

1 file changed

+57
-51
lines changed

README.md

Lines changed: 57 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -78,71 +78,77 @@ that booted with amazon-ec2-net-utils.
7878
$ mkdir -p rpmbuild/BUILD
7979
$ git -C amazon-ec2-net-utils/ archive main | (cd rpmbuild/BUILD/ && tar xvf -)
8080
$ rpmbuild -bb rpmbuild/BUILD/amazon-ec2-net-utils.spec
81-
$ sudo dnf install rpmbuild/RPMS/noarch/amazon-ec2-net-utils-2.0.0-1.al2022.noarch.rpm
81+
$ sudo dnf install rpmbuild/RPMS/noarch/amazon-ec2-net-utils-*.al2023.noarch.rpm
8282

8383
### dpkg build and installation ###
8484

8585
$ dpkg-buildpackage -uc -us -b
86-
$ sudo apt install ../amazon-ec2-net-utils_2.0.0-1_all.deb
86+
$ sudo apt install ../amazon-ec2-net-utils_*_all.deb
8787

8888
### Installation verification ###
8989

9090
$ # inspect the state of the system to verify that networkd is running:
9191
$ networkctl # should report all physical interfaces as "routable" and "configured"
92-
$ networkctl status eth0 # should report "/run/systemd/network/70-eth0.network" as the network conf file
92+
$ networkctl status ens5 # should report "/run/systemd/network/70-ens5.network" as the network conf file
9393
$ resolvectl # show status of systemd-resolved
9494

9595
**Example:**
9696

97-
[ec2-user@ip-10-0-0-114 ~]$ networkctl
97+
[ec2-user@ip-172-31-41-210 ~]$ networkctl
9898
IDX LINK TYPE OPERATIONAL SETUP
99-
1 lo loopback carrier unmanaged
100-
2 eth0 ether routable configured
101-
102-
2 links listed.
103-
[ec2-user@ip-10-0-0-114 ~]$ networkctl status eth0
104-
● 2: eth0
105-
Link File: /usr/lib/systemd/network/99-default.link
106-
Network File: /run/systemd/network/70-eth0.network
107-
Type: ether
108-
State: routable (configured)
109-
Alternative Names: enp0s5
110-
ens5
111-
Path: pci-0000:00:05.0
112-
Driver: ena
113-
Vendor: Amazon.com, Inc.
114-
Model: Elastic Network Adapter (ENA)
115-
HW Address: 02:c9:76:e3:18:0b
116-
MTU: 9001 (min: 128, max: 9216)
117-
QDisc: mq
118-
IPv6 Address Generation Mode: eui64
119-
Queue Length (Tx/Rx): 2/2
120-
Address: 10.0.0.114 (DHCP4 via 10.0.0.1)
121-
fe80::c9:76ff:fee3:180b
122-
Gateway: 10.0.0.1
123-
DNS: 10.0.0.2
124-
Activation Policy: up
125-
DHCP4 Client ID: IAID:0xed10bdb8/DUID
126-
DHCP6 Client DUID: DUID-EN/Vendor:0000ab11a9aa54876c81082a0000
127-
128-
Sep 01 17:44:54 ip-10-0-0-114.us-west-2.compute.internal systemd-networkd[2042]: eth0: Link UP
129-
Sep 01 17:44:54 ip-10-0-0-114.us-west-2.compute.internal systemd-networkd[2042]: eth0: Gained carrier
130-
Sep 01 17:44:54 ip-10-0-0-114.us-west-2.compute.internal systemd-networkd[2042]: eth0: Gained IPv6LL
131-
Sep 01 17:44:54 ip-10-0-0-114.us-west-2.compute.internal systemd-networkd[2042]: eth0: DHCPv4 address 10.0.0.114/24 via 10.0.0.1
132-
Sep 01 17:44:54 ip-10-0-0-114.us-west-2.compute.internal systemd-networkd[2042]: eth0: Re-configuring with /run/systemd/network/70-eth0.net>
133-
Sep 01 17:44:54 ip-10-0-0-114.us-west-2.compute.internal systemd-networkd[2042]: eth0: DHCP lease lost
134-
Sep 01 17:44:54 ip-10-0-0-114.us-west-2.compute.internal systemd-networkd[2042]: eth0: DHCPv6 lease lost
135-
Sep 01 17:44:54 ip-10-0-0-114.us-west-2.compute.internal systemd-networkd[2042]: eth0: DHCPv4 address 10.0.0.114/24 via 10.0.0.1
136-
[ec2-user@ip-10-0-0-114 ~]$ resolvectl
137-
Global
138-
Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
139-
resolv.conf mode: uplink
140-
141-
Link 2 (eth0)
142-
Current Scopes: DNS
143-
Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
144-
Current DNS Server: 10.0.0.2
145-
DNS Servers: 10.0.0.2
99+
1 lo loopback carrier unmanaged
100+
2 ens5 ether routable configured
101+
102+
[ec2-user@ip-172-31-41-210 ~]$ networkctl status ens5
103+
● 2: ens5
104+
Link File: /usr/lib/systemd/network/99-default.link
105+
Network File: /run/systemd/network/70-ens5.network
106+
State: routable (configured)
107+
Online state: online
108+
Type: ether
109+
Path: pci-0000:00:05.0
110+
Driver: ena
111+
Vendor: Amazon.com, Inc.
112+
Model: Elastic Network Adapter (ENA)
113+
Alternative Names: device-number-0.0
114+
eni-0304feb62015b7959
115+
enp0s5
116+
Hardware Address: 06:53:e1:d8:f9:29
117+
MTU: 9001 (min: 128, max: 9216)
118+
QDisc: mq
119+
IPv6 Address Generation Mode: eui64
120+
Number of Queues (Tx/Rx): 2/2
121+
Address: 172.31.41.210 (DHCP4 via 172.31.32.1)
122+
fe80::453:e1ff:fed8:f929
123+
Gateway: 172.31.32.1
124+
DNS: 172.31.0.2
125+
Search Domains: us-west-2.compute.internal
126+
Activation Policy: up
127+
Required For Online: yes
128+
DHCP4 Client ID: IAID:0xed10bdb8/DUID
129+
DHCP6 Client IAID: 0xed10bdb8
130+
DHCP6 Client DUID: DUID-EN/Vendor:0000ab115a2053b21e6b7f0a
131+
132+
Jan 16 19:49:32 localhost systemd-networkd[1828]: ens5: Configuring with /usr/lib/systemd/network/80-ec2.network.
133+
Jan 16 19:49:32 localhost systemd-networkd[1828]: ens5: Link UP
134+
Jan 16 19:49:32 localhost systemd-networkd[1828]: ens5: Gained carrier
135+
Jan 16 19:49:32 localhost systemd-networkd[1828]: ens5: DHCPv4 address 172.31.41.210/20, gateway 172.31.32.1 acquired from 172.31.32.1
136+
Jan 16 19:49:32 localhost systemd-networkd[1828]: ens5: Gained IPv6LL
137+
Jan 16 19:49:33 localhost systemd-networkd[1828]: ens5: Reconfiguring with /run/systemd/network/70-ens5.network.
138+
Jan 16 19:49:33 localhost systemd-networkd[1828]: ens5: DHCP lease lost
139+
Jan 16 19:49:33 localhost systemd-networkd[1828]: ens5: DHCPv6 lease lost
140+
Jan 16 19:49:33 localhost systemd-networkd[1828]: ens5: DHCPv4 address 172.31.41.210/20, gateway 172.31.32.1 acquired from 172.31.32.1
141+
142+
[ec2-user@ip-172-31-41-210 ~]$ resolvectl
143+
Global
144+
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
145+
resolv.conf mode: uplink
146+
147+
Link 2 (ens5)
148+
Current Scopes: DNS
149+
Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
150+
DNS Servers: 172.31.0.2
151+
DNS Domain: us-west-2.compute.internal
146152

147153
## Getting help ##
148154

0 commit comments

Comments
 (0)