關於ifconfig - Linux

Table of Contents

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,而不是用指令給定的
謝謝

--

All Comments

Oscar avatarOscar2012-10-15
netmask 問題? 32 ?
Oliver avatarOliver2012-10-17
但只要在/etc/network/interface有加入非192.168網段的ip
Jessica avatarJessica2012-10-19
他就可以連的到
Joe avatarJoe2012-10-23
列一下routing table? 指令: route