Question: IP ADDRESSES TASK Side note: You can use RE module to help with this :) ### Description Problem In the linux terminal when executing the

IP ADDRESSES TASK

Side note: You can use RE module to help with this :)

### Description Problem

In the linux terminal when executing the command "ip address" the following output is produced:

eth0Link encap:EthernetHWaddr b8:ac:6f:65:31:e5

inet addr:192.168.2.100Bcast:192.168.2.255Mask:255.255.255.0

inet6 addr: fe80::baac:6fff:fe65:31e5/64 Scope:Link

UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1

RX packets:2697529 errors:0 dropped:0 overruns:0 frame:0

TX packets:2630541 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:2159382827 (2.0 GiB)TX bytes:1389552776 (1.2 GiB)

Interrupt:17

eth1Link encap:EthernetHWaddr b8:ac:6f:65:53:e5

inet addr:10.10.2.100Bcast:10.10.2.255Mask:255.255.255.0

inet6 addr: fe80::baac:6fff:ff65:31e5/64 Scope:Link

UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1

RX packets:2697529 errors:0 dropped:0 overruns:0 frame:0

TX packets:2630541 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:2159382827 (2.0 GiB)TX bytes:1389552776 (1.2 GiB)

Interrupt:17

loLink encap:Local Loopback

inet addr:127.0.0.1Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNINGMTU:16436Metric:1

RX packets:2849 errors:0 dropped:0 overruns:0 frame:0

TX packets:2849 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:2778290 (2.6 MiB)TX bytes:2778290 (2.6 MiB)

ppp0Link encap:Point-to-Point Protocol

inet addr:10.1.3.105P-t-P:10.0.31.18Mask:255.255.255.255

UP POINTOPOINT RUNNING NOARP MULTICASTMTU:1496Metric:1

RX packets:102800 errors:0 dropped:0 overruns:0 frame:0

TX packets:63437 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:3

RX bytes:148532544 (141.6 MiB)TX bytes:4425518 (4.2 MiB)

vmnet1Link encap:EthernetHWaddr 00:50:56:c0:00:01

inet addr:192.168.47.1Bcast:192.168.47.255Mask:255.255.255.0

inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link

UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:49 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B)TX bytes:0 (0.0 B)

vmnet8Link encap:EthernetHWaddr 00:50:56:c0:00:08

inet addr:172.16.232.1Bcast:172.16.232.255Mask:255.255.255.0

inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link

UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:49 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B)TX bytes:0 (0.0 B)

vmnet9Link encap:EthernetHWaddr 00:50:56:c0:01:08

inet addr:172.16.233.1Bcast:172.16.233.255Mask:255.255.255.0

inet6 addr: fe80::250:76ff:fec0:8/64 Scope:Link

UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:49 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B)TX bytes:0 (0.0 B)

vmnet10Link encap:EthernetHWaddr 00:50:56:c0:02:08

inet addr:172.16.234.1Bcast:172.16.234.255Mask:255.255.255.0

inet6 addr: fe80::250:86ff:fec0:8/64 Scope:Link

UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:49 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B)TX bytes:0 (0.0 B)

### Task 1 - Work To Do

I'd wish you to extract the ip addresses "inet addr" from this result and list the interface following the interface name as well as the ip address with CIDR notation.

Example:

Interface name | IP address

eth0 | 10.1.1.1/32

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!