CREATING DEFAULT ROUTES

General chat concerning linux or linuxzoo.

Moderator: drgrussell

Post Reply
Ciaran
Posts: 1
Joined: Wed Dec 09, 2009 3:51 pm
Are you a robot or a human?: Human

CREATING DEFAULT ROUTES

Post by Ciaran » Wed Dec 09, 2009 4:04 pm

Hi, im currently revising for this linux final tommorow and im kinda confused about creating the default routes. i know the commands but not sure about where to route the packets to and from? for example in gordons 2008/9 exam papers q8. you have to supply the ip route commands for M2.

ip route add [ network address?] dev [eth?]
ip route default [ router gateway address?]

just not sure about which network address and device # you have to supply, and is the the default route the gateway of the router or wat??

any help would be bloody brilliant!
cheers

drgrussell
Site Admin
Posts: 426
Joined: Sat Feb 12, 2005 8:57 pm
Are you a robot or a human?: Human

Re: CREATING DEFAULT ROUTES

Post by drgrussell » Thu Dec 10, 2009 11:02 pm

Well its far to late now to worry about it...
But the device is the name of the device which connects that machine to the local network. If it is not stated it is likely eth0.
The first network address would be the network number of that local network. It would take a format like 10.10.10.0/24.
The last command takes the IP of the default gateway, which is the IP of the machine at the other end of the local network link.

Hope the exam went well.
Gordon.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest