To find Ip address of our Fedora Machine we can use ifconfig command
#ifconfig -a
Output:
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0
ether 02:42:cd:a5:81:90 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.103 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::52e5:49ff:fe9a:81b1 prefixlen 64 scopeid 0x20<link>
ether 50:e5:49:9a:81:b1 txqueuelen 1000 (Ethernet)
RX packets 93288 bytes 117692336 (112.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 71001 bytes 6798224 (6.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp3s6: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:e0:4c:49:e3:31 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 890 bytes 388569 (379.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 890 bytes 388569 (379.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.124.1 netmask 255.255.255.0 broadcast 192.168.124.255
ether 00:00:00:00:00:00 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0-nic: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 52:54:00:a9:f6:1d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
what is enp2s0 when usually its eth0,eth1 so let's google it.
Here is what they say about "enp2s0".
en stand for ethernet
p2 stand for bus number (2)
s0 stand for slot number (0)
In this enp2s0 & enp3s6 stand for wired connection our machine is connected to internet on wired connection so within this output lets look for term "inet IpAddress" we got "192.168.0.103"
No comments:
Post a Comment