Reply
New Member
Posts: 11
Registered: ‎10-12-2013

Edgerouter X make eth3 WAN instead of eth0 Edit config.boot

I want to make eth3 the WAN port on my new EdgeRouter X instead of the default eth0. 

 

Can I do this by just modifying the config.boot file like this, or will it brick my box? I want to do this so I can power with POE from my ToughSwitch using eth0 . 

interfaces {
    ethernet eth0 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth1 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth2 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth3 {
        address dhcp
        description Internet
        duplex auto
        firewall {
            in {
                name WAN_IN
            }
            local {
                name WAN_LOCAL
            }
        }
        speed auto
    }
    ethernet eth4 {
        description Local
        duplex auto
        speed auto
    }
    loopback lo {
    }
    switch switch0 {
        address 192.168.1.1/24
        description Local
        mtu 1500
        switch-port {
            interface eth0
            interface eth1
            interface eth2
            interface eth4
        }
    }
}



    nat {
        rule 5010 {
            description "masquerade for WAN"
            outbound-interface eth3
            type masquerade
        }
    }
 

 I  

Veteran Member
Posts: 7,615
Registered: ‎03-24-2016
Kudos: 1981
Solutions: 872

Re: Edgerouter X make eth3 WAN instead of eth0 Edit config.boot

Yes you can, config looks fine.

otoh , recommended way is to make the changes in CLI or GUI, so you got error correction

New Member
Posts: 11
Registered: ‎10-12-2013

Re: Edgerouter X make eth3 WAN instead of eth0 Edit config.boot

Thanks. The GUI doesn't seem to want to let me do this. Or I don't know the magic words :-)

New Member
Posts: 11
Registered: ‎10-12-2013

Re: Edgerouter X make eth3 WAN instead of eth0 Edit config.boot

[ Edited ]

It did work. I now have eth0 connected to my Toughswitch POE and it is running the Edgerouter with 24v POE and the WAN is connected on eth3. Everything seems to be okay except in the GUI it says that POE is not supported on eth0.

Established Member
Posts: 963
Registered: ‎09-24-2017
Kudos: 202
Solutions: 77

Re: Edgerouter X make eth3 WAN instead of eth0 Edit config.boot

The ER-X can *accept* power (24V passive PoE) on eth0, and it can, with the right power supply, provide PoE output (passthrough) on eth4. The message you are seeing referring to PoE output, which is only supported on eth4. You can disregard the warning since eth0 is accepting PoE as expected.

Reply