CentOS新鲜的iLO安装,没有互联网连接(yum,wget等失败)

我已经通过iLO安装了最新CentOS的全新副本(惠普的集成指示灯2)。 安装types是Web服务器。 我的服务器似乎无法连接到互联网了。 我已经失去了DHCP和主机名的旧设置,但我有eth0和DNS服务器的旧设置,还有一些我应该做的,以便能够使用wget,yum,ping和从其他位置的SSH访问,但我似乎无法find那是什么。

任何指针? 谢谢。

编辑:路线命令:

 route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface xx.xx.68.0 * 255.255.255.0 U 0 0 0 eth0 link-local * 255.255.0.0 U 1002 0 0 eth0 

请注意,服务器IP是xx.xx.68.176,我应该改变路线?

做一个

 route add default gw xx.xx.68.1(?) #Gateway's IP 

或者按照@ewwhite说你应该正确地configuration你的networking,因为有像if-up,if-down这样的脚本来处理类似你的界面事件

编辑:@Lucas的评论后,更好的去你的/ etc / network /接口,并添加

 iface eth0 inet static address xx.xx.68.176 netmask 255.255.255.0 gateway xx.xx.68.xx 

你可以随时发送一个新的请求到你的DHCP服务器,这样做会在重新启动后丢失

 dhclient eth0 

或者通过添加到/ etc / network /接口

 iface eth0 inet static 

我会说你错过了默认路由 – 有时被称为网关。

你可以运行system-config-network ,填入你的networkingconfiguration信息并重新启动networking服务吗? /sbin/service network restart