Ubuntu 12.014 无法连接到 LAN 或互联网

Ubuntu 12.014 无法连接到 LAN 或互联网

我有一台 Dell T-300 服务器,运行的是 2008 年的 BIOS。我正在运行 Ubuntu 12.04。我已加载 Apache、Samba 和其他程序。我使用 Ubuntu 作为我的文件服务器。多年来一切都运行良好。现在我无法从办公室的 LAN 访问任何文件或程序。服务器是有线的,其他计算机也是有线的。Windows 计算机可以在网络上互相看到,但任何其他计算机都看不到 Ubuntu 服务器。

我第一次配置计算机时设置了静态 IP。

当我查看连接信息时,它显示以下内容:

Wired Connection (default)
Interface                 Ethernet (eth1)
Driver                    tg3
Speed                     100Mb/s
Security                  None

IPv4
IP Address               10.22.66.10
Broadcast Address        10.22.66.255
Subnet mask              255.255.255.0
Default Rout             10.22.66.1


In my interface file is the following

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface 
auto eth0
iface eth0 inet static
address  10.22.66.10
netmask  255.255.255.0
network 10.22.66.0
broadcast 10.22.66.255
gateway 10.22.66.1

dns-nameserver 10.22.66.1
dns-search local

然后我检查了我的-lshw,这就是我得到的

cory101@smart-monkey:~$ sudo lshw -class network 
  *-network                
       description: Ethernet interface 
       product: NetXtreme BCM5722 Gigabit Ethernet PCI Express 
       vendor: Broadcom Corporation 
       physical id: 0 
       bus info: pci@0000:01:00.0 
       logical name: eth0 
       version: 00 
       serial: 00:22:19:b5:a1:ce 
       capacity: 1Gbit/s 
       width: 64 bits 
       clock: 33MHz 
       capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation 
       configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.121 firmware=5722-v3.08, ASFIPMI v6.02 latency=0 link=no multicast=yes port=twisted pair promiscuous=yes 
       resources: irq:305 memory:dfdf0000-dfdfffff 
  *-network 
       description: Ethernet interface 
       product: NetXtreme BCM5722 Gigabit Ethernet PCI Express 
       vendor: Broadcom Corporation 
       physical id: 0 
       bus info: pci@0000:02:00.0 
       logical name: eth1 
       version: 00 
       serial: 00:22:19:b5:a1:cf 
       size: 100Mbit/s 
       capacity: 1Gbit/s 
       width: 64 bits 
       clock: 33MHz 
       capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation 
       configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.121 duplex=full firmware=5722-v3.08, ASFIPMI v6.02 ip=10.22.66.10 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s 
       resources: irq:306 memory:dfef0000-dfefffff 
  *-network 
       description: Ethernet interface 
       physical id: 1 
       logical name: tap0 
       serial: da:c0:fd:55:80:06 
       size: 10Mbit/s 
       capabilities: ethernet physical 
       configuration: autonegotiation=off broadcast=yes driver=tun driverversion=1.6 duplex=full firmware=N/A link=yes multicast=yes port=twisted pair promiscuous=yes speed=10Mbit/s 

注意:我可以ping 8.8.8.8从戴尔服务器上成功访问,但无法ping 10.22.66.1从我的局域网中的任何 Windows 计算机上访问。

任何帮助是极大的赞赏。

答案1

正确/etc/network/interfaces的语法不是dns-nameserversdns-nameserver注意s末尾的)。您的计算机address10.22.66.10。您没有在 处提供任何有关计算机的信息10.22.66.1;我无法猜测它为什么不响应 ping。

相关内容