分页: 1 / 1

HP-UX – Configure network interface

发表于 : 2013年 8月 3日 23:08 星期六
admin
1. Open the /etc/rc.config.d/netconf for editing.

2. Add the internet configuration information for the interface.

For example:
INTERFACE_NAME[0]=”lan0”
IP_ADDRESS[0]=”192.6.1.1”
SUBNET_MASK[0]=”255.255.224.0”
BROADCAST_ADDRESS[0]=””
INTERFACE_STATE[0]=””
DHCP_ENABLE[0]=”0”
NOTE: The index value (value located inside brackets) must be different for each interface.

3. Add the routing information.

For example, to specify the default route:
ROUTE_DESTINATION[0]=”default”
ROUTE_GATEWAY[0]=”192.6.1.2”
ROUTE_COUNT[0]=”1”
ROUTE_MASK[0]=””
ROUTE_ARGS[0]=””
NOTE: The index value (value located inside brackets) must be different for each route.

4. Save the file and exit the editor.

5. Check the network adapter’s interface configuration file to verify speed and duplex settings.

NOTE: HP names these configuration files differently depending on model. Consult your particular network adapter’s documentation.

6. Reboot the server or restart the network services to avoid the reboot.

代码: 全选

# /sbin/init.d/net start