Took me some month :)
It's working.
Here's the setup:
ifconfig.address.lan0:
ONBOOT=yes
IFACE=lan0
SERVICE=ipv4-static
IP=10.0.66.66
PREFIX=16
ifconfig.address.wan0
ONBOOT=yes
IFACE=wan0
SERVICE=ipv4-static
IP=121.211.212.123
PREFIX=28
GATEWAY=121.211.212.113
ifconfig.statroute.lan0
ONBOOT=yes
IFACE=lan0
SERVICE=ipv4-static-route
IP=192.168.0.0
PREFIX=16
STATIC_GATEWAY=10.0.0.254
ifconfig.statroute.wan0
ONBOOT=yes
IFACE=wan0
SERVICE=ipv4-static-route
TYPE=host
IP=36.121.79.0
STATIC_GATEWAY=wan0
PREFIX=25
ip a:
2: wan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UNKNOWN qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 121.211.212.123/28 scope global wan0
valid_lft forever preferred_lft forever
3: lan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 10.0.66.66/16 scope global lan0
valid_lft forever preferred_lft forever
ip r:
default via 121.211.212.113 dev wan0
10.0.0.0/16 dev lan0 proto kernel scope link src 10.0.66.66
36.121.79.0/25 dev wan0 scope link
192.168.0.0/16 via 10.0.0.254 dev lan0
121.211.212.112/28 dev wan0 proto kernel scope link src
121.211.212.123
Thx...
On Sat, 2013-06-08 at 19:34 -0500, Bruce Dubbs wrote:
> loki wrote:
> > On Fri, 2013-06-07 at 15:53 -0500, Bruce Dubbs wrote:
> >
> >
> >> I think I see what you mean. What happens if we add a new variable to
> >> the ifconfig script:
> >>
> >> STATIC_GATEWAY=10.0.5.5
> >>
> >> and change GATEWAY to STATIC_GATEWAY in the ipv4-static-route script?
> >>
> >
> >
> > Sounds good. Will try that as soon as I finish the new server, that is
> > as soon as I solve the binutils problem.
> >
> >
> >
> >> We could also add a small check to ensure both GATEWAY and
> >> STATIC_GATEWAY are not both defined. That would cause problems
> >> when using the ipv4-static-route script.
> >>
> >
> > Lost you there. Do you mean if someone puts GATEWAY and STATIC_GATEWAY
> > vars in the same file?
>
> Yes. If we use STATIC_GATEWAY in ipv4-static-route, we want to skip the
> GATEWAY code in ifup.
>
> -- Bruce
<<attachment: face-smile.png>>
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
