Sponsored Content
Operating Systems Linux Red-hat AS 2.1 network question Post 51437 by zazzybob on Wednesday 19th of May 2004 05:37:07 PM
Old 05-19-2004
There are a few things you'll have to do to set this up.

Do an ifconfig eth0 down to bring the adapter down (assuming that eth0 is your ethernet device)

Firstly, edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file and get the network configuration as you should want it.

For example, without DHCP, something like
DEVICE=eth0
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes

All these settings are dependant on your particular network, however.


You can then either reboot, or run the ifup command (/etc/sysconfig/network-scripts/ifup eth0) or (/sbin/ifup eth0) depending on where it's located, or just do an "ifconfig eth0 up", and that should bring the interface back up.

Run "ifconfig -a" to see what eth0 is doing!

You may need to add a route do the default gateway too, depending on your setup.

You'll need to make the appropriate entry in /etc/hosts for the new static IP

CHeers
ZB
http://www.zazzybob.com
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Network settings on Red Hat

HELP!! How do you change the network setting from auto-duplex to 100 Base T Full Duplex in Red HaT? (1 Reply)
Discussion started by: johnlong
1 Replies

2. Linux

red hat ent 5 network

Hi All, I configured during the installation my red hat 5 ent with dhcp enable. Now I modified to static on ../ifcfg-eth0. It won't change when network is restarted with ../network restart command. I need to do ifdown eth0 and ifup eth0. And when rebooted, it will go back to dhcp. Here's... (1 Reply)
Discussion started by: itik
1 Replies

3. Red Hat

How to register with Red Hat Network?

Hi, We have Red Hat Enterprise Linux 5.3 running on all our machines and planning to make one machine as a YUM repository server. Using yum utility the rest of the RHEL machines should be able to get the latest patches/ packages. Done a POC with the packages available in RHEL 5.3 DVD –... (1 Reply)
Discussion started by: uday123
1 Replies

4. Shell Programming and Scripting

Linux Red Hat - FTP question

Hi Everyone, Based on what I have read so far and what others have posted on this forum, I have come up with the following script to download and upload files from and to a FTP sever: HOST=xyz.com USER=someuser PASSWD=somepwd tmpfile=/tmp/files.$$ indir=/tmp/inbound... (2 Replies)
Discussion started by: maxshop
2 Replies

5. Red Hat

How do I network a Suse installed machine with other computers, specifically Red hat Linux?

How do I network a Suse installed machine with other computers, specifically Red hat Linux? This is for a school project, and I can't find any pages that tell how to network a Suse to other computers except how to use a printer. (1 Reply)
Discussion started by: Anna Hussie
1 Replies

6. Red Hat

Red Hat Linux release 9 (Shrike) question

Hi guys, wondering if you could help me out here... this is a proxy system problem I'm trying to access a web gui service off a linux box running Red Hat Linux release 9 (Shrike) used as a proxy server which does not seem to have a web browser installed..... how can i do this? so to... (2 Replies)
Discussion started by: slashbash
2 Replies

7. Red Hat

Linux Red Hat AS3 Network card is not detecting ...

Dear Expert, I 've installed Redhat linux AS3, My machine having Inbuild network card (Intel(R) 82566DM-2 Gigabit Network Connection). I've downloaded e1000e-2.3.2 from Intel site, but its not working for my machine. I'm unable to configure the Network. ifconfig eth0 xx.xx.xx.xx netmask... (0 Replies)
Discussion started by: Mohammed Faiz
0 Replies

8. Red Hat

Red Hat Network / Support

Dear all, I have around 7 servers which are running under RHEL 5.x Version. I have supported the server for nearly 3 years. Till now I have not contacted RHEL Network Support from Redhat for any services. Now a thought came to my mind , that in any case if there is some issue with the OS or... (3 Replies)
Discussion started by: jegaraman
3 Replies

9. UNIX for Dummies Questions & Answers

Red Hat Linux question on top and vmstat outputs

RHEL 5.4 Our Linux machine seemed to be running slow. So, I ran the top and vmstat commands. Question1. I can see the process 11517 consuming 100% CPU . But that just means that this process totally utilizes one of the cores in a mult-core CPU. Right ? This machine apparently has two... (2 Replies)
Discussion started by: kraljic
2 Replies
VLAN-INTERFACES(5)						   File formats 						VLAN-INTERFACES(5)

NAME
/etc/network/interfaces (vlan) - vlan extensions for the interfaces(5) file format DESCRIPTION
/etc/network/interfaces contains network interface configuration information for the ifup(8) and ifdown(8) commands. This manpage describes the vlan extensions to the standard interfaces(5) file format. Primary extensions exist to make and destroy vlan interfaces, secondary extensions exist for ipv4 interface manipulation which are gener- ally needed when using (a lot of) vlans. VLAN CREATION
Vlan interface definitions exist of the vlan interface name, and an optional 'raw-device' parameter. Vlan interfaces are numbered 1 to 4095. You have the option to have interface names zero-padded to 4 numbers, or just the plain digits without leading zero. The following example shows four ways to create a vlan with id 1 on interface eth0. They all result in different names. iface eth0.1 inet static address 192.168.1.1 netmask 255.255.255.0 iface vlan1 inet static vlan-raw-device eth0 address 192.168.1.1 netmask 255.255.255.0 iface eth0.0001 inet static address 192.168.1.1 netmask 255.255.255.0 iface vlan0001 inet static vlan-raw-device eth0 address 192.168.1.1 netmask 255.255.255.0 # We don't have br support out of the box iface br0.2 inet static vlan-raw-device br0 address 192.168.1.1 netmask 255.255.255.0 # Aliases are ignored iface br0.2:1 inet static address 192.168.1.1 netmask 255.255.255.255 EXTRA IFACE OPTIONS
Usually someone who uses vlans also wants to do some other manipulations with the ip stack or interface. vlan-raw-device devicename Indicates the device to create the vlan on. This is ignored when the devicename is part of the vlan interface name. ip-proxy-arp 0|1 Turn proxy-arp off or on for this specific interface. This also works on plain ethernet like devices. ip-rp-filter 0|1|2 Set the return path filter for this specific interface. This also works on plain ethernet like devices. hw-mac-address mac-address This sets the mac address of the interface before bringing it up. This works on any device that allows setting the hardware address with the ip command. AUTHOR
This manpage was adapted from interfaces(5) by Ard van Breemen <ard@kwaak.net> SEE ALSO
vconfig(8) interfaces(5) vlan September 30 2007 VLAN-INTERFACES(5)
All times are GMT -4. The time now is 08:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy