LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-08-2004, 01:57 AM   #1
bytebrowser
Member
 
Registered: Jun 2003
Location: QLD Australia
Distribution: Redhat 9.0 was but now like Fedora Core 2
Posts: 57

Rep: Reputation: 15
RH9 Change IP Address... Which Files?


Hello

I have recently purchased a new VPN router and later found that it will only operate on the subnet 255.255.255.0. As this is different to my current setup, I need to change the IP address and the subnet mask of my Red Hat 9 mail server.

I have installed, Postfix, Apache, MySQL, vsftp and webmin.

What I would like to know are all the files that I need to alter to change the IP address and the subnet.

Thanks

Pete
 
Old 05-08-2004, 02:03 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
u may prefer "netconfig" command to configure net. if u wanna change it from file, look at /etc/sysconfig/network-scripts/ directory. after that restart network. "/etc/init.d/network restart".
 
Old 05-08-2004, 02:16 AM   #3
bytebrowser
Member
 
Registered: Jun 2003
Location: QLD Australia
Distribution: Redhat 9.0 was but now like Fedora Core 2
Posts: 57

Original Poster
Rep: Reputation: 15
so all I have to do is to change the details in this command and it will chage all thoughout the server?

Last edited by bytebrowser; 05-08-2004 at 02:29 AM.
 
Old 05-08-2004, 02:24 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
yes!
/etc/sysconfig/network-scripts/ifcfg-eth0 file is your config file for eth0 interface. just change it and restart network daemon.
but i recommend "netconfig" command: "netconfig eth0"
netconfig calculates broadcast address and network address, and it changes this file for u.
 
Old 05-08-2004, 02:29 AM   #5
bytebrowser
Member
 
Registered: Jun 2003
Location: QLD Australia
Distribution: Redhat 9.0 was but now like Fedora Core 2
Posts: 57

Original Poster
Rep: Reputation: 15
thanks mate!
 
Old 05-08-2004, 02:40 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
ur welcome! we r here to help each other
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Ip address luisator Linux - Newbie 3 06-02-2005 04:03 AM
won't change ip address xushi Solaris / OpenSolaris 4 05-14-2005 03:11 AM
Change IP address lvran Linux - Networking 2 10-16-2003 01:19 AM
cannot change ip address ??? aherrys Linux - Networking 0 07-06-2003 03:34 AM
Change address juno Linux - General 2 10-25-2002 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration