I just learned a new way to get network interface information, while I am not a permitted SUDO user.
rajesh@linuxbox:~/code$ sudo ifconfig eth1
eth1 Link encap:Ethernet HWaddr e0:69:95:88:cb:81
inet addr:192.168.1.95 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::e269:95ff:fe88:cb81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24502 errors:0 dropped:0 overruns:0 frame:0
TX packets:26449 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27824021 (26.5 MiB) TX bytes:20140980 (19.2 MiB)
Interrupt:20 Memory:fe400000-fe420000
rajesh@linuxbox:~/code$ netstat -ie
Kernel Interface table
eth1 Link encap:Ethernet HWaddr e0:69:95:88:cb:81
inet addr:192.168.1.95 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::e269:95ff:fe88:cb81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24509 errors:0 dropped:0 overruns:0 frame:0
TX packets:26455 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27824607 (26.5 MiB) TX bytes:20141704 (19.2 MiB)
Interrupt:20 Memory:fe400000-fe420000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12624 (12.3 KiB) TX bytes:12624 (12.3 KiB)
rajesh@linuxbox:~/code$
rajesh@linuxbox:~/code$ sudo ifconfig eth1
eth1 Link encap:Ethernet HWaddr e0:69:95:88:cb:81
inet addr:192.168.1.95 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::e269:95ff:fe88:cb81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24502 errors:0 dropped:0 overruns:0 frame:0
TX packets:26449 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27824021 (26.5 MiB) TX bytes:20140980 (19.2 MiB)
Interrupt:20 Memory:fe400000-fe420000
rajesh@linuxbox:~/code$ netstat -ie
Kernel Interface table
eth1 Link encap:Ethernet HWaddr e0:69:95:88:cb:81
inet addr:192.168.1.95 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::e269:95ff:fe88:cb81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24509 errors:0 dropped:0 overruns:0 frame:0
TX packets:26455 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27824607 (26.5 MiB) TX bytes:20141704 (19.2 MiB)
Interrupt:20 Memory:fe400000-fe420000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12624 (12.3 KiB) TX bytes:12624 (12.3 KiB)
rajesh@linuxbox:~/code$

No comments:
Post a Comment