Chinaunix首页 | 论坛 | 博客
  • 博客访问: 161206
  • 博文数量: 171
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 1990
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-05 10:49
文章分类

全部博文(171)

文章存档

2011年(9)

2010年(162)

我的朋友

分类: LINUX

2010-09-17 16:12:53

STEP 1 (The settings for the initial IP address)

$ cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.99.255
IPADDR=192.168.1.155
NETMASK=255.255.252.0
NETWORK=192.168.1.0
ONBOOT=yes

STEP 2 (2nd IP address: )

$ cat /etc/sysconfig/network-scripts/ifcfg-eth0:1

DEVICE=eth0:1
BOOTPROTO=static
BROADCAST=192.168.99.255
IPADDR=192.168.1.182
NETMASK=255.255.252.0
NETWORK=192.168.1.0
ONBOOT=yes

This entry was written by and posted on May 10, 2010 at 8:46 pm and filed under . Bookmark the . Follow any comments here with the .

5 Responses to “Setting up 2 IP address on “One” NIC.”

  1. Says:

    This is my first visit to your blog. We are starting a new initiative in the same niche as this blog. Your blog provided us with important information to work on. You have done a admirable job.

  2. Says:

    Thank you for such a fantastic blog. Where else could anyone get that kind of info written in such a perfect way? I have a presentation that I am presently working on, and I have been on the look out for such information.

  3. Says:

    I think you have a great page here… today was my first time coming here.. I just happened to find it doing a google search. anyway, good post.. I’ll be bookmarking this page for sure.

  4. Says:

    Thank you for another informative blog. Where else could I get that kind of info written in such a perfect way? I have a project that I am just now working on, and I have been on the look out for such information.

  5. Says:

    I hate to sound like a nitpick, but your grammar is just…deplorable.   I want to be interested in this, I really do.   But it seems you spent so much time on the design (which, I will say, is amazing) that you forgot that people actually have to read your blog.   Clean this up…PLEASE.   It could be so much bigger if you just did some work

阅读(656) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~