banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận mạng và thiết bị mạng Network trên win & ubuntu  XML
  [Question]   Network trên win & ubuntu 26/05/2009 09:31:48 (+0700) | #1 | 181866
[Avatar]
hi
Member

[Minus]    0    [Plus]
Joined: 22/10/2007 01:21:17
Messages: 27
Offline
[Profile] [PM]
Mình gặp 1 vấn đề khó hiểu. Với ubuntu 9.04, ở nhà mình chỉ cần cắm dây mạng vào là kết nối được bình thường, còn tới công ty thì không thể kết nối Internet được. Còn với WinXP thì ở nhà không kết nối được, tới công ty thì kết nối bình thường.
Đây là 1 số thông số:
ubuntu, ở cty:
Code:
[color=red]cat /etc/network/interfaces:[/color]


auto lo

iface lo inet loopback  

auto eth0

iface eth0 inet dhcp 

[color=red]ifconfig[/color]

eth0      Link encap:Ethernet  HWaddr 00:16:d3:a9:c1:30  

          inet addr:10.0.0.11  Bcast:255.255.255.255  Mask:255.0.0.0

          inet6 addr: fe80::216:d3ff:fea9:c130/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:137052 errors:0 dropped:0 overruns:0 frame:0

          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:11815187 (11.8 MB)  TX bytes:5752 (5.7 KB)

          Interrupt:17 Base address:0x8000 



eth1      Link encap:Ethernet  HWaddr 00:1a:73:78:3a:3e  

          inet addr:192.168.60.226  Bcast:192.168.60.255  Mask:255.255.255.0

          inet6 addr: fe80::21a:73ff:fe78:3a3e/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:151175 errors:0 dropped:0 overruns:0 frame:628459

          TX packets:2672 errors:6 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:13055662 (13.0 MB)  TX bytes:241488 (241.4 KB)

          Interrupt:19 



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:13711 errors:0 dropped:0 overruns:0 frame:0

          TX packets:13711 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0 

          RX bytes:9560902 (9.5 MB)  TX bytes:9560902 (9.5 MB)

[color=red]sudo /etc/init.d/networking restart[/color]
* Reconfiguring network interfaces...                                                                                                                    There is already a pid file /var/run/dhclient.eth0.pid with pid 2987

killed old client process, removed PID file

Internet Systems Consortium DHCP Client V3.1.1

Copyright 2004-2008 Internet Systems Consortium.

All rights reserved.

For info, please visit http://www.isc.org/sw/dhcp/



Listening on LPF/eth0/00:16:d3:a9:c1:30

Sending on   LPF/eth0/00:16:d3:a9:c1:30

Sending on   Socket/fallback

DHCPRELEASE on eth0 to 10.0.0.2 port 67

Ignoring unknown interface eth1=eth1.

Internet Systems Consortium DHCP Client V3.1.1

Copyright 2004-2008 Internet Systems Consortium.

All rights reserved.

For info, please visit http://www.isc.org/sw/dhcp/



Listening on LPF/eth0/00:16:d3:a9:c1:30

Sending on   LPF/eth0/00:16:d3:a9:c1:30

Sending on   Socket/fallback

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4

DHCPOFFER of 10.0.0.11 from 10.0.0.2

DHCPREQUEST of 10.0.0.11 on eth0 to 255.255.255.255 port 67

DHCPACK of 10.0.0.11 from 10.0.0.2

bound to 10.0.0.11 -- renewal in 42045 seconds.

ping google.com

ping: unknown host google.com


Ubuntu, ở nhà:
[code]
eth0      Link encap:Ethernet  HWaddr 00:16:d3:a9:c1:30  
          inet addr:192.168.1.37  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::216:d3ff:fea9:c130/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22710 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19877 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:30302418 (30.3 MB)  TX bytes:2781368 (2.7 MB)
          Interrupt:17 

eth1      Link encap:Ethernet  HWaddr 00:1a:73:78:3a:3e  
          inet6 addr: fe80::21a:73ff:fe78:3a3e/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:19 

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:358 errors:0 dropped:0 overruns:0 frame:0
          TX packets:358 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:171793 (171.7 KB)  TX bytes:171793 (171.7 KB)

[color=red]sudo /etc/init.d/networking restart[/color]

* Reconfiguring network interfaces...     
 There is already a pid file /var/run/dhclient.eth0.pid with pid 3236
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:16:d3:a9:c1:30
Sending on   LPF/eth0/00:16:d3:a9:c1:30
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:16:d3:a9:c1:30
Sending on   LPF/eth0/00:16:d3:a9:c1:30
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPOFFER of 192.168.1.37 from 192.168.1.1
DHCPREQUEST of 192.168.1.37 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.37 from 192.168.1.1
bound to 192.168.1.37 -- renewal in 122595 seconds.


Còn đây là winxp, ở cty:
Code:
Windows IP Configuration


Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.60.60
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

Ethernet adapter Wireless Network Connection:

        Connection-specific DNS Suffix  . : cmc.com.vn
        IP Address. . . . . . . . . . . . : 192.168.60.226
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.60.250


Mình muốn có thể dùng ubuntu kết nối internet ở cty, mình đã thử đặt IP tĩnh nhưng không được.
Vấn đề của mình là do đâu?
Nhích cằm lên, vai buông lỏng và mỉm cười ^__^
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 26/05/2009 12:38:24 (+0700) | #2 | 181890
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Không thấy /etc/resolv.conf đâu cả?

Gì thì gì cứ "debug" đơn giản theo mấy bước thế này:
1. Máy tính nhận được private IP chưa?
2. Ping đến default gateway (IP của modem chẳng hạn) được không?
3. Ping ra ngoài (208.67.222.222 chẳng hạn) được không?
4. Ping google.com trả về cái gì?

Từ đó sẽ xác định được vấn đề nằm ở đâu.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 27/05/2009 06:45:44 (+0700) | #3 | 182011
[Avatar]
hi
Member

[Minus]    0    [Plus]
Joined: 22/10/2007 01:21:17
Messages: 27
Offline
[Profile] [PM]
Đây là nội dung của cat /etc/resolv.conf:
Code:
# Generated by NetworkManager
domain cmc.com.vn
search cmc.com.vn
nameserver 192.168.70.111
nameserver 192.168.70.1

Nhích cằm lên, vai buông lỏng và mỉm cười ^__^
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 27/05/2009 10:36:34 (+0700) | #4 | 182041
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

hi wrote:
Đây là nội dung của cat /etc/resolv.conf:
Code:
# Generated by NetworkManager
domain cmc.com.vn
search cmc.com.vn
nameserver 192.168.70.111
nameserver 192.168.70.1

 

Đó là IP của những cái gì?

Thử:
- nslookup --> enter
- google.com --> enter

kết quả trả về thế nào?
Code:
$ nslookup
> google.com
Server:		192.168.1.254
Address:	192.168.1.254#53

Non-authoritative answer:
Name:	google.com
Address: 74.125.67.100
Name:	google.com
Address: 209.85.171.100
Name:	google.com
Address: 74.125.45.100
>


PS: Mấy bước ở trên bạn đã thử kiểm tra chưa, kết quả ra sao?
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 27/05/2009 12:54:26 (+0700) | #5 | 182059
jforum3000
Member

[Minus]    0    [Plus]
Joined: 26/08/2007 02:53:39
Messages: 1172
Offline
[Profile] [PM]
Theo suy đoán của mình thì ở nhà bạn dùng mạng có dây, nhưng khi lên công ty thì dùng mạng không dây đúng không? Vậy bạn lên công ty, vào Ubuntu thử chạy các lệnh này để cấu hình lại 2 card mạng bằng tay cho giống với bên XP xem sao nhé
Code:
sudo -s
ifconfig eth0 192.168.60.60 netmask 255.255.255.0 broadcast 192.168.60.255
ifconfig eth1 192.168.60.226 netmask 255.255.255.0 broadcast 192.168.60.255
route add default gw 192.168.60.250

Ngoài ra, lên công ty, vào XP, chú ý xem lại DNS của nó: Start - run - cmd
Code:
ipconfig /all

Xem có giống với Ubuntu không
Code:
nameserver 192.168.70.111
nameserver 192.168.70.1

Nếu không giống thì sửa lại trong file /etc/resolv.conf
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 27/05/2009 23:45:30 (+0700) | #6 | 182097
[Avatar]
hi
Member

[Minus]    0    [Plus]
Joined: 22/10/2007 01:21:17
Messages: 27
Offline
[Profile] [PM]

quanta wrote:
Không thấy /etc/resolv.conf đâu cả?

Gì thì gì cứ "debug" đơn giản theo mấy bước thế này:
1. Máy tính nhận được private IP chưa?
2. Ping đến default gateway (IP của modem chẳng hạn) được không?
3. Ping ra ngoài (208.67.222.222 chẳng hạn) được không?
4. Ping google.com trả về cái gì?

Từ đó sẽ xác định được vấn đề nằm ở đâu. 


1- Làm sao để biết máy nhận đc private IP hay chưa?
Mình ko muốn để private IP.
2. Ping được
3.Ko được
4.Ko được
Nhích cằm lên, vai buông lỏng và mỉm cười ^__^
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 27/05/2009 23:50:34 (+0700) | #7 | 182099
[Avatar]
hi
Member

[Minus]    0    [Plus]
Joined: 22/10/2007 01:21:17
Messages: 27
Offline
[Profile] [PM]

quanta wrote:

hi wrote:
Đây là nội dung của cat /etc/resolv.conf:
Code:
# Generated by NetworkManager
domain cmc.com.vn
search cmc.com.vn
nameserver 192.168.70.111
nameserver 192.168.70.1

 

Đó là IP của những cái gì?

Thử:
- nslookup --> enter
- google.com --> enter

kết quả trả về thế nào?
Code:
$ nslookup
> google.com
Server:		192.168.1.254
Address:	192.168.1.254#53

Non-authoritative answer:
Name:	google.com
Address: 74.125.67.100
Name:	google.com
Address: 209.85.171.100
Name:	google.com
Address: 74.125.45.100
>


PS: Mấy bước ở trên bạn đã thử kiểm tra chưa, kết quả ra sao? 


Đó là IP của những cái gì?: IP của mạng có dây

Đây là kết quả của nslookup:
Server: 192.168.70.1
Address: 192.168.70.1#53

Non-authoritative answer:
Name: google.com
Address: 209.85.171.100
Name: google.com
Address: 74.125.67.100
Name: google.com
Address: 74.125.45.100

ping google nó báo unknown host.
Nhích cằm lên, vai buông lỏng và mỉm cười ^__^
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 28/05/2009 00:17:11 (+0700) | #8 | 182105
[Avatar]
hi
Member

[Minus]    0    [Plus]
Joined: 22/10/2007 01:21:17
Messages: 27
Offline
[Profile] [PM]

jforum3000 wrote:
Theo suy đoán của mình thì ở nhà bạn dùng mạng có dây, nhưng khi lên công ty thì dùng mạng không dây đúng không? Vậy bạn lên công ty, vào Ubuntu thử chạy các lệnh này để cấu hình lại 2 card mạng bằng tay cho giống với bên XP xem sao nhé
Code:
sudo -s
ifconfig eth0 192.168.60.60 netmask 255.255.255.0 broadcast 192.168.60.255
ifconfig eth1 192.168.60.226 netmask 255.255.255.0 broadcast 192.168.60.255
route add default gw 192.168.60.250

Ngoài ra, lên công ty, vào XP, chú ý xem lại DNS của nó: Start - run - cmd
Code:
ipconfig /all

Xem có giống với Ubuntu không
Code:
nameserver 192.168.70.111
nameserver 192.168.70.1

Nếu không giống thì sửa lại trong file /etc/resolv.conf 


Ở nhà mình dùng ko dây, ở cty mình dùng cả ko dây & có dây
Đây là ipconfig /all ở cty:
U:\>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : quyennt-laptop
Primary Dns Suffix . . . . . . . : cmc.com.vn
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : cmc.com.vn
cmc.com.vn
com.vn

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : NVIDIA nForce Networking Controller
Physical Address. . . . . . . . . : 00-16-D3-A9-C1-30
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.94.8
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :

Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix . : cmc.com.vn
Description . . . . . . . . . . . : Broadcom 802.11b/g WLAN
Physical Address. . . . . . . . . : 00-1A-73-78-3A-3E
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.60.226
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.60.250
DHCP Server . . . . . . . . . . . : 192.168.60.200
DNS Servers . . . . . . . . . . . : 192.168.70.111
192.168.70.1
Primary WINS Server . . . . . . . : 192.168.70.200
Secondary WINS Server . . . . . . : 192.168.70.1
Lease Obtained. . . . . . . . . . : Wednesday, May 27, 2009 10:22:20 AM
Lease Expires . . . . . . . . . . : Saturday, May 30, 2009 10:22:20 AM

Để mình switch qua ubuntu thử lại xem sao.
Nhích cằm lên, vai buông lỏng và mỉm cười ^__^
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 28/05/2009 00:36:20 (+0700) | #9 | 182111
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Phân tích thêm một chút nhé:

- eth0 = wire (có dây), eth1 = wireless (không dây)?
- /etc/network/interfaces chỉ cấu hình cho phép eth0 nhận IP từ DHCP server, không đả động gì đến eth1

Ở nhà:
- cắm dây mạng vào eth0, nó nhận được IP là 192.168.1.37 qua con DHCP server (chính là modem - 192.168.1.1)

Lên công ty:
- vừa cắm dây mạng, vừa có wifi
- eth0 nhận được IP là 10.0.0.11 từ con DHCP server 10.0.0.2 nào đó
- Khi restart network thì nó bỏ qua eth1:
Ignoring unknown interface eth1=eth1. 


hi wrote:

quanta wrote:
Không thấy /etc/resolv.conf đâu cả?

Gì thì gì cứ "debug" đơn giản theo mấy bước thế này:
1. Máy tính nhận được private IP chưa?
2. Ping đến default gateway (IP của modem chẳng hạn) được không?
3. Ping ra ngoài (208.67.222.222 chẳng hạn) được không?
4. Ping google.com trả về cái gì?

Từ đó sẽ xác định được vấn đề nằm ở đâu. 


1- Làm sao để biết máy nhận đc private IP hay chưa?
Mình ko muốn để private IP.
2. Ping được
3. Ko được
4. Ko được
 

Ơ, thế bạn gõ lệnh ifconfig ở trên mà không hiểu gì à? Private chứ không phải Static nhé.

Bây giờ thử nghĩ xem nếu bước 3 không được thì vấn đề nằm ở đâu?

Lên cty, boot vào Ubuntu, gõ route -n hoặc netstat -rn xem nó ra cái gì?

Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 28/05/2009 02:53:08 (+0700) | #10 | 182124
[Avatar]
hi
Member

[Minus]    0    [Plus]
Joined: 22/10/2007 01:21:17
Messages: 27
Offline
[Profile] [PM]
interface thế này:
Code:
auto lo
iface lo inet loopback  
auto eth0
iface eth0 inet dhcp

thì
netstat -rn ra thế này:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.60.0    0.0.0.0         255.255.255.0   U         0 0          0 eth1
169.254.0.0     0.0.0.0          255.255.0.0     U         0 0          0 eth0
10.0.0.0        0.0.0.0             255.0.0.0       U         0 0          0 eth0
0.0.0.0         192.168.60.250  0.0.0.0         UG        0 0          0 eth1
0.0.0.0         10.0.0.2             0.0.0.0         UG        0 0          0 eth0


Sau đó mình thêm eth1 vào, interface sẽ như thế này:
Code:
auto lo
iface lo inet loopback  
auto eth0
iface eth0 inet dhcp 
auto eth1
iface eth1 inet dhcp

gõ netstat -rn:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.70.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.60.0    0.0.0.0         255.255.255.0   U         0 0          0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.60.250  0.0.0.0         UG        0 0          0 eth1
0.0.0.0         192.168.70.250  0.0.0.0


Rồi restart networking:
Code:
quyennt@quyennt-laptop:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                                                                                                    There is already a pid file /var/run/dhclient.eth0.pid with pid 2581
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:16:d3:a9:c1:30
Sending on   LPF/eth0/00:16:d3:a9:c1:30
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 10.0.0.2 port 67
RTNETLINK answers: No such process
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:1a:73:78:3a:3e
Sending on   LPF/eth1/00:1a:73:78:3a:3e
Sending on   Socket/fallback
DHCPRELEASE on eth1 to 10.6.83.1 port 67
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:16:d3:a9:c1:30
Sending on   LPF/eth0/00:16:d3:a9:c1:30
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 192.168.70.54 from 192.168.70.200
DHCPREQUEST of 192.168.70.54 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.70.54 from 192.168.70.200
bound to 192.168.70.54 -- renewal in 77128 seconds.
 * if-up.d/mountnfs[eth0]: waiting for interface eth1 before doing NFS mounts
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:1a:73:78:3a:3e
Sending on   LPF/eth1/00:1a:73:78:3a:3e
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
DHCPOFFER of 192.168.60.190 from 192.168.60.250
DHCPREQUEST of 192.168.60.190 on eth1 to 255.255.255.255 port 67
DHCPACK of 192.168.60.190 from 192.168.60.250
bound to 192.168.60.190 -- renewal in 111182 seconds.


ping google.com
PING google.com (74.125.45.100) 56(84) bytes of data.
From 192.168.60.250 icmp_seq=3 Destination Host Unreachable

Biểu tượng kết nối wireless báo có kết nối, 100% nhưng ping hay vào net từ trình duyệt đều ko được.
Nhích cằm lên, vai buông lỏng và mỉm cười ^__^
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 28/05/2009 04:10:37 (+0700) | #11 | 182135
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

quanta wrote:

Bây giờ thử nghĩ xem nếu bước 3 không được thì vấn đề nằm ở đâu?
 

hi wrote:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.60.250  0.0.0.0         UG        0 0          0 eth1

 

Con 192.168.60.250 vẫn đi ra Internet bình thường?
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 28/05/2009 09:12:55 (+0700) | #12 | 182173
[Avatar]
hi
Member

[Minus]    0    [Plus]
Joined: 22/10/2007 01:21:17
Messages: 27
Offline
[Profile] [PM]
Mình không rõ. Dải 60 đấy là của wireless, biểu tượng thông báo kết nối được nhưng ping hay duyệt web trên trình duyệt thì lại không được.
Nhích cằm lên, vai buông lỏng và mỉm cười ^__^
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 29/05/2009 23:00:26 (+0700) | #13 | 182253
Mr.Khoai
Moderator

Joined: 27/06/2006 01:55:07
Messages: 954
Offline
[Profile] [PM]
hi,

Phải cho coi route table sau khi restart network service chứ smilie, cho coi trước khi restart thì không biết được active configuration có kết quả ra sao.

Lạ một điểm là DHCP được cung cấp cho eth0 thông qua server là 192.168.70.200/24, trong khi default route lại trỏ đến 192.168.70.250/24. khoai cứ nghĩ cả 2 DHCP server đều đảm nhiệm nhiệm vụ của gateway chứ. Bạn kiểm tra lại xem 192.168.70.250/24 và 192.168.0.200/24 có access được không.

Tình hình nếu bạn có nhiều hơn 1 interface, và các default route đều giống nhau (match đến destination là 0.0.0.0), thì linux routing system sẽ chọn interface đầu tiên là output interface, và sử dụng route đó. Cụ thể ở đây, linux sẽ sử dụng 192.168.70.250/24 là default gateway, và sử dụng interface eth0 (thứ tự trước eth1).

Nếu 192.168.70.250 không access được thì rất có thể đây là lý do khiến Ubuntu không thể sử dụng Internet tại công ty. Lỗi này có thể là do DHCP server đã được cấu hình sai, hoặc IP của server đã được thay đổi nhưng cấu hình vẫn chưa update?

khoai
---------

PS: Quên mất là trong đống route table có một entry đến 169.254.0.0/16. Route này sẽ được thêm vào khi eth0 nhận được cấu hình IP là 169.254.x.y/16 vì nó được cấu hình static như vậy, hoặc là DHCP server không trả lời khi DHCP client hỏi xin IP.
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 29/05/2009 23:42:01 (+0700) | #14 | 182262
myquartz
Member

[Minus]    0    [Plus]
Joined: 04/01/2005 04:58:30
Messages: 563
Offline
[Profile] [PM]
Lý do là Ubuntu nó bị nhầm route khi có 2 kết nối wifi - LAN đồng thời. Khác với Win, Nó ưu tiên route mọi thứ đi theo kênh kết nối thành lập sau (ở đây có lẽ là LAN cắm trước, wifi kết nối sau khi đăng nhập, do NetworkManager hay gì đó kết tự động do được lưu lại). Route đi lối wifi vì lý do nào đó không vào được Internet, bị unreachable, nên ko vào được bằng Ubuntu. Win thì nó luôn ưu tiên kết nối có dây, dù có hay không có wifi, do đó vào được.

Giải quyết: nếu không cần thiết kết nối wifi (ko nên dùng 2 kết nối cùng 1 mục đích Internet), hãy tắt wifi của máy: phím tắt, công tắc hoặc nháy phải vào biểu tượng Network Manager trong thanh bar của Ubuntu và bỏ chọn cái wireless.
Nếu dùng wireless thì đơn giản là rút dây mạng LAN ra.

Ở nhà không có wifi mà kết nối dây Win không vào được thì chưa đủ thông tin để kết luận, có khả năng thiết lập sai tham số mạng.
[Up] [Print Copy]
  [Question]   Re: Network trên win & ubuntu 30/05/2009 01:11:36 (+0700) | #15 | 182277
[Avatar]
hi
Member

[Minus]    0    [Plus]
Joined: 22/10/2007 01:21:17
Messages: 27
Offline
[Profile] [PM]
Thx cả nhà, mình hiểu thêm được 1 số thứ. Để đợt này cài lại máy đã xem tình hình có thay đổi không.
Nhích cằm lên, vai buông lỏng và mỉm cười ^__^
[Up] [Print Copy]
  [Question]   Network trên win & ubuntu 07/07/2009 23:32:45 (+0700) | #16 | 185679
[Avatar]
hi
Member

[Minus]    0    [Plus]
Joined: 22/10/2007 01:21:17
Messages: 27
Offline
[Profile] [PM]
Mình đã tìm ra nguyên nhân, đó là do cái ISA của cty, install cho ubuntu cái ntlmaps.
Nhích cằm lên, vai buông lỏng và mỉm cười ^__^
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|