On Thu, 26 Feb 2004 00:19:01 +0100
Jan Minar <jjminar@fastmail.fm> wrote:
> The `bridge' is your only gateway to the Internet, right? Then the only
> thing you have to do is:
>
> # which ip || apt-get install iproute
> # ip route add AAA.BBB.CCC.DDD/32 dev eth0
> # ip route add default via aaa.bbb.ccc.ddd dev eth0
>
> Where AAA.BBB.CCC.DDD is the `bridge' IP address in the dotted decimal
> format (ISP range, private range, whatever, doesn't matter). (I suppose
> the `bridge' is configured correctly.)
Thanks for the tip. I'm getting closer, but not sure of the correct syntax.
home computers (4) firewall wireless internet
192.168.2.* bridge (**) ^
^ ^ 4.2.2.1 |
| | ^ |
| eth1 | eth0 | |
--------------------------------------------------------------
192.168.2.1 4.2.2.2 (**)
** - IP address' to protect the guilty
What I want to to, is to change eth0 from my ISP's address 4.2.2.2 to
a "private " address 192.168.1.2
So far, from the command line and in /etc/network.interfaces, I can
bring up eth0 using the following;
ifconfig eth0 4.2.2.2 netmask 255.255.255.0 broadcast 4.2.2.128 up
route add default gw 4.2.2.3
this will allow my access to the internet.
I've been pointed to the program - iproute - which appears to get me
closer than I was yesterday at this time.
I've been trying to use the following, with no success;
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255 up
ip route add 4.2.2.1/32 (bridge) dev eth0
ip route add default via 4.2.2.1 dev eth0
I've tried pointing to the ISP's gateway IP address' but it complains
"network unavailable"
--
Rodney D. Myers <rdmyers@pe.net> Registered Linux User #96112
ICQ#: AIM#: YAHOO:
18002350 mailman452 mailman42_5
They that can give up essential liberty to obtain a
little temporary safety deserve neither liberty nor safety.
Ben Franklin - 1759
Attachment:
pgpcbm9DhVpiW.pgp
Description: PGP signature