作者hukhuk (ken)
看板Linux
標題[問題] 關於ifconfig
時間Thu Oct 11 13:46:38 2012
hi all:
有些問題想請教大家,
root@test1:~# ifconfig eth2 192.168.55.88
root@test1:~# ip addr sh eth2
4: eth2: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 10:1c:22:80:71:a3 brd ff:ff:ff:ff:ff:ff
inet 192.168.55.88/32 scope global eth2
inet6 fe80::21b:21ff:fe7f:70a2/64 scope link
valid_lft forever preferred_lft forever
為什麼我始終都ping 不到這個ip,還是這個interface需要綁一個真的ip,而不是用指令給定的
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 210.61.97.145
→ lantw44:netmask 問題? 32 ? 10/11 14:02
→ hukhuk:但只要在/etc/network/interface有加入非192.168網段的ip 10/12 10:57
→ hukhuk:他就可以連的到 10/12 10:58
→ oafishfish:列一下routing table? 指令: route 10/15 11:45