Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-05-2001, 04:45 AM
|
#1
|
Member
Registered: Aug 2001
Location: UK
Distribution: Mandrake 8.0
Posts: 33
Rep:
|
Blueyonder Cable
Hi,
I asked about blueyonder a while ago... Just needed to ask a few more things...
My windows computer burnt out, so the technitions said they will put it on Linux (if I basicly do it for them)
Soooo...
1) How do I make eth1 the default route for all internet dns & IPs?
2) How do I set up dhpcd?
I have to learn this for the install tomorrow morning :|
Thanks,
- Nick
|
|
|
10-05-2001, 06:01 AM
|
#2
|
Member
Registered: Apr 2001
Location: London
Posts: 408
Rep:
|
You need to make sure the router FIB table is setup correctly for all packets.
# ISP_routers_name = your router that has internet access
# eth0 is the interface that connect to that router
route add default gw ISP_routers_name eth0
You all need to allow ip packet forwarding so it can act as a router.
echo 1 > /proc/sys/net/ipv4/ip_forward
Install dhcpd and run "man dhcpd"
blueyonder runs there own DHCP service on the cable modem, so your Linux box doesn't need to do this.
ps. the Modem is tied to the MAC address of the network Card, it won't work unless someone from blueyonder changes it, that's if you have a new NIC.
Then point all the PC's to use the Linux boxes internal IP address as the default router.
The Linux box will also need to do NAT if you don't use External ip address in your internal LAN, like 192.168 10 172.16
/RAz
|
|
|
10-05-2001, 09:55 AM
|
#3
|
Member
Registered: Aug 2001
Location: UK
Distribution: Mandrake 8.0
Posts: 33
Original Poster
Rep:
|
Yeah...
Ok...
So, forget IP MASQING for a minute...
Just basic installation...
I plug them modem in to eth1...
At the moment if I type: lynx linuxquestions.org it will try to use eth0 to access this site... I want it to use eth1 instead...
And so, I just forget dhcpcd? or do I run dhcpcd -i eth1?
- Nick
|
|
|
10-08-2001, 08:56 AM
|
#4
|
Member
Registered: Apr 2001
Location: London
Posts: 408
Rep:
|
ok..
dhcpcd is going to get the IP address from there DHCP server.
"dhcpcd uses the network interface eth0 unless an explicit name is specified." from man page
So start with.
# requests IP release
dhcpcd -k
# interface should be 0.0.0.0 waiting for new lease.
dhcpcd eth1
# requests new lease on interface eth1.
I don't know if the syntax is correct as I never use DHCP on Linux boxes, due to the lack of security in authentication.
/Raz
|
|
|
All times are GMT -5. The time now is 10:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|