歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> 解決AIX中不能ping通網關的問題

解決AIX中不能ping通網關的問題

日期:2017/2/28 11:18:46   编辑:關於Unix


前天在一台IBM P150上新安裝了5.3版本操作系統,今天發現不能通過本機telnet過去(無法ping通對方IP地址:192.168.1.171)。經檢查,在P150上能ping通自身IP,但不能ping通網關地址192.168.1.1。smit進入Communications Applications and Services->TCP/IP->Minimum Configuration & Startup,發現可用的網絡接口都有en0、en1、et0、et1。
重新返回到命令行模式,ifconfig -a查看IP地址所使用的網卡為en0。進入到smit將en0啟動,系統提示說不支持多網卡,啟動不成功。返回到命令行模式,netstat -rn觀察網關地址:
# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 192.168.1.1 UGA 0 0 en1 - -
127/8 127.0.0.1 U 1 204 lo0 - -
192.168.1.0 192.168.1.171 UHSb 0 0 en0 - - =>
192.168.1/24 192.168.1.171 U 16 5547 en0 - -
192.168.1.171 127.0.0.1 UGHS 31 937 lo0 - -
192.168.1.255 192.168.1.171 UHSb 0 0 en0 - -
Route Tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 0 lo0 - -
發現啟用網關的是en1網卡,問題找到。
解決方法:進入smit->Communications Applications and Services->TCP/IP->Further Configuration->Network Interfaces->Network Interface Selection-> Remove a Network Interface,將en1和et1刪除,再回到命令行模式下,ping 192.168.1.1,成功。通過筆記本telnet 192.168.1.171測試連接,成功。
Copyright © Linux教程網 All Rights Reserved