M
M
mr_mescaline2018-04-01 18:48:39
Computer networks
mr_mescaline, 2018-04-01 18:48:39

ifup and centos script?

when raising the interface with a curl, you need to pull the url
to the file added
/ sbin / ifup-local

#!/bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin
curl http://url.com

When you reboot, everything works, and when you restart the router, it does not react.
everything worked on ubuntu, well, you need it in centos. where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-04-02
@saboteur_kiev

Check that the network manager does not manage your interface (ifcfg-eth0 or whatever interface you have). There should be a line:
NM_CONTROLLED=no

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question