adding static ip to NM = no dhcp

Carl Karsten carl at personnelware.com
Sat Jun 18 06:25:34 UTC 2011


If this is expected, I'll just add a 2nd config.  But it strikes me as odd,
so I will assume something is broken.

I want to _add_ a config to Network Manager.  For some reason this code in
my late_command resulted in no "wired connection 1" dhcp that is normally
there.

Here is what I added to late_command

  cd $TARGET/etc/NetworkManager/system-connections
  INI=10.0.0.1.ini
  wget http://$SHAZ/$INI
  _uuid="$(chroot $TARGET uuidgen)"
   sed -i "s|@UUID@|${_uuid}|" $INI
  chmod 600 $INI

# 10.0.0.1.ini
[connection]
id=10.0.0.1
uuid=@UUID@
type=802-3-ethernet
autoconnect=false

[ipv4]
method=manual
addresses1=10.0.0.1;8;0.0.0.0;

[802-3-ethernet]
duplex=full
# mac-address=0:24:81:b1:d:90

[ipv6]
method=ignore



-- 
Carl K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-installer/attachments/20110618/9d70247b/attachment.html>


More information about the Ubuntu-installer mailing list