配置HP-UNIX下配置IP地址

Cd /etc/rc.config.d

Vi netconfig

# LAN 0 端口配置
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]="35.1.90.23"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]="35.1.90.255"
INTERFACE_STATE[0]="up"
DHCP_ENABLE[0]=0
INTERFACE_MODULES[0]=""

#LAN2端口配置
INTERFACE_NAME[1]=lan2
IP_ADDRESS[1]="10.0.0.2"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]="10.0.0.255"
INTERFACE_STATE[1]="up"
DHCP_ENABLE[1]=0
INTERFACE_MODULES[1]=""

#路由配置:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]="255.255.255.0"
ROUTE_GATEWAY[0]="35.1.90.254"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_SOURCE[0]=""


节点1配置:

# LAN 0 端口配置
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]="35.1.90.21"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]="35.1.90.255"
INTERFACE_STATE[0]="up"
DHCP_ENABLE[0]=0
INTERFACE_MODULES[0]=""

#LAN2端口配置
INTERFACE_NAME[1]=lan2
IP_ADDRESS[1]="10.0.0.1"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]="10.0.0.255"
INTERFACE_STATE[1]="up"
DHCP_ENABLE[1]=0
INTERFACE_MODULES[1]=""

#路由配置:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]="255.255.255.0"
ROUTE_GATEWAY[0]="35.1.90.254"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_SOURCE[0]=""

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8334342/viewspace-608791/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8334342/viewspace-608791/

你可能感兴趣的:(配置HP-UNIX下配置IP地址)