Color Scheme
Find People
Username
Password
Sign Up
old site http://222.195.74.11/
中文版 Location: Homepage >> Chenglong Shen : CV - Publications - Blog

IDL & Linux

Poster:

1. Storm的双IP!
ifconfig:
eth0      Link encap:Ethernet  HWaddr 00:02:B3:EA:41:B6  
         inet addr:169.254.117.217  Bcast:0.0.0.0  Mask:255.255.0.0
         inet6 addr: 2001:da8:d800:472:202:b3ff:feea:41b6/64 Scope:Global
         inet6 addr: fe80::202:b3ff:feea:41b6/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:15284 errors:0 dropped:0 overruns:0 frame:0
         TX packets:8739 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:1650136 (1.5 MiB)  TX bytes:1017766 (993.9 KiB)

但是用设置的固定ip:210.45.72.68是可以连接进去的,用storm连接bbs也显示ip为210.45.72.68

用ip addr查看显示
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
   inet 127.0.0.1/8 scope host lo
   inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
   link/ether 00:02:b3:ea:41:b6 brd ff:ff:ff:ff:ff:ff
   inet 169.254.117.217/16 scope link eth0
   inet 210.45.72.68/24 brd 210.45.72.255 scope global eth0
   inet6 2001:da8:d800:472:202:b3ff:feea:41b6/64 scope global dynamic
      valid_lft 2591886sec preferred_lft 604686sec
   inet6 fe80::202:b3ff:feea:41b6/64 scope link
      valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
   link/ether 00:02:b3:ea:42:dd brd ff:ff:ff:ff:ff:ff
4: sit0: <NOARP> mtu 1480 qdisc noop
   link/sit 0.0.0.0 brd 0.0.0.0

表示这个网卡绑定了两个ip, jameszhang说留着没什么影响,但是还是用他所的方法删除了一个IP
方法为:ip add del 169.254.117.217/24 dev eth0

不过还是没搞明白为什么会多绑定一个169.*.*.*这种内网的IP
并且在ifup eth0的时候提示 Error: an inet prefix is expected rather than "{}"

google了一下也只找到一个写完全看不懂的语言的国家的人出现过这个问题
http://newsarchiv.tugraz.at/browse/tu-graz.betriebssysteme.linux/msg14640.html
郁闷
Chenglong Shen
Posted at 2007-08-28 16:32 CST
Last modified at 2007-08-28 16:33 CST
Link to this poster
Friendly Version
Top


Locations | Statistics | FAQ
Best view under the 1024x768 resolution and with the normal size of fonts.
Designed & developed by Yuming Wang, run for 6346 days since December 15, 2006, and last upgraded on May 28th, 2009.
Powered by Apache + PHP coded cOpfOs 3.11.1 last upgraded on February 22nd, 2010.
Copyright © 2006, all rights reserved.