hi,

I have several network interfaces connected to different netwroks on my Red Hat server. I have added a new link and configured it - /etc/sysconfig/network-scripts/ifcfg-eth4. Now, when I am doing ifconfig eth4 down / up the ip I had set is not written on the interface the only way to set those definitions is by service network restart, which restart's the other interfaces.

is there any way to start only the specific interface with it's new definitions ?

asked 01 Jul '11, 11:27

itamarm's gravatar image

itamarm
2612
accept rate: 50%

edited 04 Jul '11, 16:19

Ron's gravatar image

Ron ♦
9361618




Hi Ron,

I am not familiar with the path you have mentioned. I have configured eth4 interface with static ip at: /etc/sysconfig/network-scripts/ifcfg-eth4

vi /etc/sysconfig/network-scripts/ifcfg-eth4
DEVICE=eth4
BOOTPROTO=static
HWADDR=00:0C:29:5D:60:8A
ONBOOT=yes
IPADDR=10.1.1.120
NETMASK=255.255.255.0
NETWORK=10.1.1.0
TYPE=Ethernet

any way I forgot to use the ifconfig command to set the ip definition in realtime

 ifconfig eth4 10.1.1.120

solved my problem. thanks for the bother.

link

answered 04 Jul '11, 15:36

itamarm's gravatar image

itamarm
2612
accept rate: 50%

Have you configured /etc/network/interfaces with the static ip for eth4 ?

link

answered 04 Jul '11, 07:23

Ron's gravatar image

Ron ♦
9361618
accept rate: 13%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×11

Asked: 01 Jul '11, 11:27

Seen: 5,819 times

Last updated: 04 Jul '11, 16:19

powered by OSQA