Page 1 of 1

Network Installation: ip command

PostPosted: Oct 9th, '17, 13:43
by inktvis75
Hi,

I tried to install Mageia using the Network Install media.
During the installation wizard, I selected dhcp as an option, and that failed.
I tried to find out why, but logging didn't help, and on top of that: in the console there was no ip utility available to view the status of the network interface.
After selecting fixed addressing everything worked.
I don't know why it failed, but if i have at least the ip command available, i have something to work on ...

Re: Network Installation: ip command

PostPosted: Oct 10th, '17, 09:18
by doktor5000
It is available under /sbin but that is probably not in the path. It's the same with ifconfig on quite a few other distributions where people seem to think you need root permissions to run ifconfig.

Code: Select all
[doktor5000@Mageia6]─[09:17:41]─[~] /sbin/ip
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
       ip [ -force ] -batch filename
where  OBJECT := { link | address | addrlabel | route | rule | neigh | ntable |
                   tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
                   netns | l2tp | fou | macsec | tcp_metrics | token | netconf | ila }
       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
                    -h[uman-readable] | -iec |
                    -f[amily] { inet | inet6 | ipx | dnet | mpls | bridge | link } |
                    -4 | -6 | -I | -D | -B | -0 |
                    -l[oops] { maximum-addr-flush-attempts } | -br[ief] |
                    -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] |
                    -rc[vbuf] [size] | -n[etns] name | -a[ll] | -c[olor]}

Re: Network Installation: ip command

PostPosted: Oct 10th, '17, 11:29
by inktvis75
nope it's not there ...

Normal install media check:

sudo dnf install squashfs-tools
sudo mkdir /mnt/tmp
sudo mount -o loop Mageia-6-x86_64-DVD.iso /mnt
cd /mnt/x86_64/install
sudo mount -t squashfs mdkinst.sqfs /media/tmp
find /media/tmp -name 'ip' -ls
find /media/tmp -name 'ifconfig' -ls

no result

netmedia:
sudo mount -o loop Mageia-6-netinstall-x86_64.iso /mnt
cp /mnt/isolinux/x86_64/all.rdz /tmp/all.xz
cd /tmp
unxz all.xz
mkdir allcpio
cd allcpio
cpio -i -F ../all
find . -name 'ip'
find . -name 'ifconfig'

no result

:(((

Re: Network Installation: ip command

PostPosted: Oct 11th, '17, 10:13
by doktor5000
Well the install media only has busybox, and I believe there are no separate binaries there.

Re: Network Installation: ip command

PostPosted: Oct 11th, '17, 10:25
by inktvis75
I have to look further into it, but i am not sure that the installer uses busybox,
if it does, then it's easy enough to add the ip command :)

Re: Network Installation: ip command

PostPosted: Oct 11th, '17, 12:54
by doktor5000
Just press Ctrl+Alt+F2 to get to the shell.

Re: Network Installation: ip command

PostPosted: Oct 11th, '17, 13:32
by inktvis75
again, the shell doesn't provide ip