Chinaunix首页 | 论坛 | 博客
  • 博客访问: 166569
  • 博文数量: 68
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 650
  • 用 户 组: 普通用户
  • 注册时间: 2005-05-18 11:13
文章分类

全部博文(68)

文章存档

2011年(1)

2006年(21)

2005年(46)

我的朋友

分类:

2005-05-18 13:11:04

This article tell you how to change the subnet mask of an interface in Solaris

Description
If a network interface was configured with the wrong subnet mask as can happen when the default subnet is selected with a variable length subnet mask, a simple configuration change will fix it.
Directions
Consider a host that is assigned the IP address 10.50.90.15 in the class C subnet 10.50.90.0/24. The normal subnet mask for a class A 10.* subnet is 255.0.0.0, and this is the value that an operating system will guess given that IP address information alone. To correct this problem permanently so that it will persist after the host reboots, edit the /etc/netmask file and add the following line:
10.50.90.0   255.255.255.0
To reconfigure the interface, say hme0, immediately without rebooting the system, run the following as root:
ifconfig hme0 10.50.90.15 netmask 255.255.255.0
阅读(762) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~