Static ip configuration

View: New views
9 Messages — Rating Filter:   Alert me  

Static ip configuration

by Christian Güdel :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

why doesn't NetworkManager has an interface to manually set an IP adress
on an interface? Does this have a special reason? Or is it just not
implemented yet?
--
Christian Güdel <me@...>

_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: Static ip configuration

by Mario Limonciello :: Rate this Message:

| View Threaded | Show Only this Message

On Fri, 2005-11-25 at 22:26 +0100, Christian Güdel wrote:
> Hello,
>
> why doesn't NetworkManager has an interface to manually set an IP adress
> on an interface? Does this have a special reason? Or is it just not
> implemented yet?

I am kind of curious about this too.  I don't have a specific need right
now, but it would be nice to use when traveling with the requirement of
static ip's.

_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: Static ip configuration

by Dan Williams :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, 2005-11-29 at 15:46 -0600, Mario Limonciello wrote:

> On Fri, 2005-11-25 at 22:26 +0100, Christian Güdel wrote:
> > Hello,
> >
> > why doesn't NetworkManager has an interface to manually set an IP adress
> > on an interface? Does this have a special reason? Or is it just not
> > implemented yet?
>
> I am kind of curious about this too.  I don't have a specific need right
> now, but it would be nice to use when traveling with the requirement of
> static ip's.

NetworkManager actually does support static IP addresses.  You configure
them the normal way your distribution does.  ie, in Fedora, you use
system-config-network which puts the config
in /etc/sysconfig/network-scripts/ifcfg-ethX.  NetworkManager loads this
information when it starts and uses the static IP, gateway, netmask, etc
for that interface from then on.

Dan

_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: Static ip configuration

by Haripriya S :: Rate this Message:

| View Threaded | Show Only this Message

Will it be a good thing to have a way to invoke the distribution-specific tool (system-config-network, YaST, whatever) to configure the network adapters from nm-applet? I have used netapplet before and that allows it. Also, nm-applet allows "Configure VPN", so why not allow "Configure Network Settings" also from nm-applet?

Thanks and Regards,
Haripriya S.
 
>>> Dan Williams <dcbw@...> 11/30/05 7:50 am >>>
On Tue, 2005-11-29 at 15:46 -0600, Mario Limonciello wrote:

> On Fri, 2005-11-25 at 22:26 +0100, Christian Güdel wrote:
> > Hello,
> >
> > why doesn't NetworkManager has an interface to manually set an IP adress
> > on an interface? Does this have a special reason? Or is it just not
> > implemented yet?
>
> I am kind of curious about this too.  I don't have a specific need right
> now, but it would be nice to use when traveling with the requirement of
> static ip's.

NetworkManager actually does support static IP addresses.  You configure
them the normal way your distribution does.  ie, in Fedora, you use
system-config-network which puts the config
in /etc/sysconfig/network-scripts/ifcfg-ethX.  NetworkManager loads this
information when it starts and uses the static IP, gateway, netmask, etc
for that interface from then on.

Dan

_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list


_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: Static ip configuration

by Jens Lautenbacher :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, 2005-11-29 at 21:20 -0500, Dan Williams wrote:

> On Tue, 2005-11-29 at 15:46 -0600, Mario Limonciello wrote:
> > On Fri, 2005-11-25 at 22:26 +0100, Christian Güdel wrote:
> > > Hello,
> > >
> > > why doesn't NetworkManager has an interface to manually set an IP adress
> > > on an interface? Does this have a special reason? Or is it just not
> > > implemented yet?
> >
> > I am kind of curious about this too.  I don't have a specific need right
> > now, but it would be nice to use when traveling with the requirement of
> > static ip's.
>
> NetworkManager actually does support static IP addresses.  You configure
> them the normal way your distribution does.  ie, in Fedora, you use
> system-config-network which puts the config
> in /etc/sysconfig/network-scripts/ifcfg-ethX.  NetworkManager loads this
> information when it starts and uses the static IP, gateway, netmask, etc
> for that interface from then on.

I hate to repeat myself, but this simply doesn't work without too much
effort when commuting between two networks where there are a) two
different static IPs on the interface or b) one time dhcp is supported
and the other it's a static IP.

I really believe NM needs to have a way to manually choose between
different configurations for an interface .

 

_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: Static ip configuration

by Derek Frye :: Rate this Message:

| View Threaded | Show Only this Message



Haripriya S wrote:
> Will it be a good thing to have a way to invoke the distribution-specific tool (system-config-network, YaST, whatever) to configure the network adapters from nm-applet? I have used netapplet before and that allows it. Also, nm-applet allows "Configure VPN", so why not allow "Configure Network Settings" also from nm-applet?
>
> Thanks and Regards,
> Haripriya S.
>  

I think probably not a good idea. Sometimes my distribution-specific
tool doesn't work, or freezes, especially when I run developmental
releases. Also, some distros (gentoo and others) don't have default
tools, but read config files.

Better to let NM source a config file or hook into whatever method your
distro tool writes out than add a button to NM.

--Derek
_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: Static ip configuration

by Rémi Cardona-2 :: Rate this Message:

| View Threaded | Show Only this Message

Derek Frye wrote:

> I think probably not a good idea. Sometimes my distribution-specific
> tool doesn't work, or freezes, especially when I run developmental
> releases. Also, some distros (gentoo and others) don't have default
> tools, but read config files.
>
> Better to let NM source a config file or hook into whatever method your
> distro tool writes out than add a button to NM.

Since you mention Gentoo, it should be said that on this distro, NM
completely overrides the network management scripts. In fact, I had to
delete the symlinks pointing to net.eth1 and net.eth0 (individiual ifup
scripts in init.d) to tell the system it should *not* take care of
setting up any interfaces (other than loopback)

So to sum it up, in gentoo, I cannot add static ips anymore without
turning off NM. Not a problem for me since there's DHCP everywhere I go,
but I can definitely imagine why some people would want such an option.

Again, this might be dependent on how NM interacts with other distros.

Rémi
_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: Static ip configuration

by David Zeuthen-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, 2005-11-29 at 22:07 -0700, Haripriya S wrote:
> Will it be a good thing to have a way to invoke the
> distribution-specific tool (system-config-network,
> YaST, whatever) to configure the network adapters from
> nm-applet? I have used netapplet before and that allows
> it. Also, nm-applet allows "Configure VPN", so why not
> allow "Configure Network Settings" also from nm-applet?

Personally I agree this would be good, but I'd hate to see this being
distribution-specific. Why do we need this to be distribution specific?

Really, all it takes is a dialog like this


  Select adapters to manually configure
                                                         |  Manually
  Network Adapters                                       | Configured
  -------------------------------------------------------+--------
  Wireless Adapter (Cisco Aironet Wireless 802.11b)      |  [X]
  Wired Adapter (82540EP Gigabit Ethernet Controller)    |  [ ]

  [Configure Adapter]                                        [Close]

 

I don't see this being a lot of work, at least not from an UI point of
view.

Cheers,
David


_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: Static ip configuration

by Christoph Sturm :: Rate this Message:

| View Threaded | Show Only this Message

Hey guys!

On 11/30/05, Jens Lautenbacher <jtl@...> wrote:
> I hate to repeat myself, but this simply doesn't work without too much
> effort when commuting between two networks where there are a) two
> different static IPs on the interface or b) one time dhcp is supported
> and the other it's a static IP.
>
> I really believe NM needs to have a way to manually choose between
> different configurations for an interface .

I also have a use case for exactly this feature. there are wavelans
with disabled dhcp for some obscure "security by obscurity" reasons,
and while this is a strange thing to do imho i still need to be able
to use these networks.

network manager could just ask for the configuration if it doesnt get
a dhcp reply. So the normal ui wouldnt get cluttered with a new
option, but instead of just not working when theres no dhcp you get a
dialog where you can enter the values.

would that be possible in the current NM architecture?

regards
 chris
_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list