- 论坛徽章:
- 0
|
today evening , after spending 2 hours in the networks config under
linux , i found the right the configuration to enable the pc connect to
internet finally.
My PC have two OS:XP and SUSE Linux . And it is in a virtual LAN bulit
by homeshare(a virtual delailing software).There are 3 PCs in the LAN
,usually ,all the 3 PCs can connect to internet staticly ,while one of
them be set as the LAN server by homeshare , and the others as client
mechine. The server has the responsbility to delail to SP ,and then
share the connection in the virtual LAN. The server mechine has two IP
address , one for ethernet and the other for virtual LAN .The client
mechines just need to have one IP address for virtual LAN .
When my pc running under XP , it is a client mechine and the IP should
be set to a LAN IP ,which can only be used in the virtual LAN . The
pockets transmitted between the client mechine and ethernet are
procesed by homeshare server .The server changes its LAN IP to
ethernet IP before the pocket is transmited to ethernet.
there is no problem to connect to ethernet under XP.
But ,when I changed to Linux OS, problems came immediately. I configed
my networks just like it was under XP, but ,I can't ping to gateway
,can't ping to any other IPs except the local pc IP .
It seems like that the networks configuration is right ,but ,i don't know why the problem comes .
I tried everything i knew.just like "route","netstat -nr",etc. And i
found the gateway is always 0.0.0.0, I have configed the gateway of
eth0 , but I don't know why it became zero here.
I tried many ways .and finally ,i tried to change the IPs. I changed the IP to ethernet IP, and the gateway .
and finally ,it succeed to conect to ethernet .
Even it succeed finally , but i don't know why .
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12876/showart_156956.html |
|