Koozali.org: home of the SME Server

How to change Network configuration

diapente

How to change Network configuration
« on: December 28, 2006, 04:42:09 AM »
Sirs,

These days I will change my ISP. So, I'll have to change my network configuration on SME7. What's the proper way to make it? How can I change my IP address, Netmask, GW and DNS? Shall I also modify any iptables or routing configuration?

Thx.

diapente

Re: How to change Network configuration
« Reply #1 on: December 28, 2006, 04:46:22 AM »
Quote from: "diapente"
Sirs,

These days I will change my ISP. So, I'll have to change my network configuration on SME7. What's the proper way to make it? How can I change my IP address, Netmask, GW and DNS? Shall I also modify any iptables or routing configuration?

Thx.


Looking /etc/sysconfig/network it says me
#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://wiki.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

The same message is for /etc/sysconfig/network-scripts/ifcfg-eth1

So how could I change my network settings?
Thx.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
How to change Network configuration
« Reply #2 on: December 28, 2006, 12:25:25 PM »
Just go to admin pannel. Use putty and log in as admin not root. Then you have to configure your server (option 2). And type the new info when you get to the pages refering to your isp and type of connection.

And that's it.
"It should just work" if it doesn't report it. Thanks!

Offline byte

  • *
  • 2,183
  • +2/-0
How to change Network configuration
« Reply #3 on: December 28, 2006, 12:25:58 PM »
Moving this topic to the SME Server 7.x forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

diapente

How to change Network configuration
« Reply #4 on: December 28, 2006, 02:03:30 PM »
Quote from: "bpivk"
Just go to admin pannel. Use putty and log in as admin not root. Then you have to configure your server (option 2). And type the new info when you get to the pages refering to your isp and type of connection.

And that's it.


Hi Bpivk!

I'v just tried to do it. When I log in like admin, it shows me the next message:

Can't locate /sbin/e-smith/console-menu-items/Configure in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /sbin/e-smith/console line 2906.

I understand that some console items are mised?! :( How can I repare it? I'm using SME7.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
How to change Network configuration
« Reply #5 on: December 28, 2006, 02:31:56 PM »
Log in as root and check what you have in /sbin/e-smith/console-menu-items.
"It should just work" if it doesn't report it. Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
How to change Network configuration
« Reply #6 on: December 28, 2006, 05:22:08 PM »
Quote from: "diapente"

I'v just tried to do it. When I log in like admin, it shows me the next message:

Can't locate /sbin/e-smith/console-menu-items/Configure in ...


This indicates that your system has somehow been corrupted - some critical files appear to be missing. Have you been removing files or packages from the command line?

diapente

How to change Network configuration
« Reply #7 on: December 29, 2006, 06:36:20 AM »
Quote from: "CharlieBrady"
Quote from: "diapente"

I'v just tried to do it. When I log in like admin, it shows me the next message:

Can't locate /sbin/e-smith/console-menu-items/Configure in ...


This indicates that your system has somehow been corrupted - some critical files appear to be missing. Have you been removing files or packages from the command line?


No Charlie... I didnt. It seems to be some hard driver problem. I'm going to change it tomorrow.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
How to change Network configuration
« Reply #8 on: December 29, 2006, 12:24:51 PM »
I still say that you should check in this directory and see if all files are in place. If not you can just copy them and it should work.
"It should just work" if it doesn't report it. Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
How to change Network configuration
« Reply #9 on: December 29, 2006, 04:46:53 PM »
Quote from: "bpivk"
I still say that you should check in this directory and see if all files are in place. If not you can just copy them and it should work.


You are making an unreasonable assumption that no other files are missing, and that no files have been corrupted.

If any files which are owned by 'root' are missing or have the incorrect contents, you should assume that all system files are suspect.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
How to change Network configuration
« Reply #10 on: December 29, 2006, 05:20:36 PM »
But he has to start fixing his problem and this would be the place to start for me. Maybe it would fix his problem. If not he can still do something else.
"It should just work" if it doesn't report it. Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
How to change Network configuration
« Reply #11 on: December 29, 2006, 05:29:41 PM »
Quote from: "bpivk"
But he has to start fixing his problem and this would be the place to start for me. Maybe it would fix his problem. If not he can still do something else.


The place to start fixing the problem is to fix the hardware failure or system compromise which caused the files to be missing in the first place. In either case a fresh install would be a good idea.