# /etc/network/interfaces not work

**URL:** <https://forums.suse.com/t/etc-network-interfaces-not-work/3259>\
**Category:** RancherOS\
**Created:** [June 30, 2016, 1:27pm UTC](https://forums.suse.com/t/etc-network-interfaces-not-work/3259 "2016-06-30T13:27:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goodforever](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@goodforever](https://forums.suse.com/u/goodforever)\
**Post date:** [June 30, 2016, 1:27pm UTC](https://forums.suse.com/t/etc-network-interfaces-not-work/3259/1 "2016-06-30T13:27:58Z")

</div>

I want to modify /etc/network/interfaces ,but it cannot work, why?

---

<div class="post-metadata">

**Author:** ![sjiveson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sjiveson/32/966_2.png) [@sjiveson](https://forums.suse.com/u/sjiveson)\
**Post date:** [June 30, 2016, 1:32pm UTC](https://forums.suse.com/t/etc-network-interfaces-not-work/3259/2 "2016-06-30T13:32:03Z")

</div>

Network settings are read from the cloud-config (/var/lib/rancher/conf/cloud-config.d/user\_config.yml).

If the setting you want to change isn’t directly supported by one of the parameters documented you can use the `pre_up` or `post_up` directives. For example, to add a route;

```
rancher:
  network:
    interfaces:
      eth0:
        mtu: 1500
        post_up:
        - ip route add 10.11.67.0/8 via 10.11.12.254 dev eth0

```

If you’re still stuck, post back with more detail on what you want to do and I’ll hopefully work out what needs to be done.
