ifconfig تموم زیر و بم واسط هاتونو نشون میده. چطور میگید که ip رو نشون نمیده!!!
[eth0 Link encap:Ethernet HWaddr 00:18:f3:8c:01:f6
inet6 addr: fe80::218:f3ff:fe8c:1f6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:52034 errors:0 dropped:0 overruns:0 frame:0
TX packets:51051 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:46051640 (46.0 MB) TX bytes:8016659 (8.0 MB)
Interrupt:27 Base address:0xa000
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:16436 Metric:1
RX packets:61792 errors:0 dropped:0 overruns:0 frame:0
TX packets:61792 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23928558 (23.9 MB) TX bytes:23928558 (23.9 MB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:89.144.191.209 P-t-P:172.16.68.129 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3040 errors:0 dropped:0 overruns:0 frame:0
TX packets:3185 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2829458 (2.8 MB) TX bytes:570103 (570.1 KB
)
حتی می تونی از دستور ifconfig به شکل زیر استفاده کنید:
ifconfig eth0
بجای eth0 هر واسطی دیگه ای که می خواید رو می تونید بزارید.
خروجی دستور ifconfig -a من :
eth0 Link encap:Ethernet HWaddr 00:23:ae:2f:c0:ad
inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::223:aeff:fe2f:c0ad/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16379 errors:0 dropped:0 overruns:0 frame:0
TX packets:18536 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16540738 (16.5 MB) TX bytes:2492092 (2.4 MB)
Interrupt:18
eth3 Link encap:Ethernet HWaddr 00:24:2c:58:a4:b1
inet6 addr: fe80::224:2cff:fe58:a4b1/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17 Base address:0xc000
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:16436 Metric:1
RX packets:257 errors:0 dropped:0 overruns:0 frame:0
TX packets:257 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:48029 (48.0 KB) TX bytes:48029 (48.0 KB)
pan0 Link encap:Ethernet HWaddr 2e:2d:0b:77:f6:20
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
pan1 Link encap:Ethernet HWaddr 1e:35:8b:b0:70:a6
inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0
inet6 addr: fe80::1c35:8bff:feb0:70a6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:13810 (13.8 KB)
vboxnet0 Link encap:Ethernet HWaddr 0a:00:27:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
و ip من 95.81.67.128 هست که در ifconfig نیست
موفق و لینوکسی باشید .