Table of contents :
- Enable the network card
- Configuring ipaddress and netmask and making the interface status as up .
- Configuring Virtual interface :
- Ip-forwording :
- Router Configuration
- Network Terms
- Next Steps
1. Enable the network card hme0: flags=842 3. Configuring Virtual interface : | |
IP forwarding allows you to forward all requests coming for a certain port or URL to be redirected to a specified IP address.
ip forwording becomes enabled automatically when system detects more then one interface at the booting time . The file involed is /etc/rc2.d/S69inet .
ipforwording is on by default but can be turned off by following command :
#ndd -set /dev/ip ip_forwarding 0
5. Router Configuration
After interfaces and ipaddess have been configured the system needs a default router which will allow the machine to talk to world outside of local network .
You can specify a particular route for a particular address as in following example
#route add -net 10.0.0.0 -netmask 255.0.0.0 172.40.30.1 1
if the the destination ipaddess is not defined in this manner system forwards all requests to the default router .
default route is defined manually by editing /etc/defaultrouter file and putting router's ipaddress entry in it. This file is read by /etc/rc2.d/S69inet file during the booting process and entry added to the routing table .
The route can be defined online also using routeadd command but the changes will be lost on reboot .To make changes permanent make sure to put an entry in /etc/defaultrouter.
#route add default 205.100.155.2 1
#route change default 205.100.155.2 1
The 1 at the end is the number of hops to the next gateway.
If an interface is not responding to the network, check to be sure it has the correct IP address and netmask , network cables are fine .
6. Network Terms
CIDR :
CIDR : Classless Inter-Domain Routing - the notation often used instead of writing the subnet mask along with ip-address . It has network prefix at the end of a address as / number of network bits.This means that the IP address 192.200.20.10 with the subnet mask 255.255.255.0 can also be expressed as 192.200.20.10/24. The /24 indicates the network prefix length, which is equal to the number of continuous binary one-bits in the subnet mask (11111111.11111111.11111111.000000). Zeros are for addressing the hosts on this network.
VLSM :
network can be variably subnetted into smaller networks, each smaller network having a different subnet mask .This functionality is avaiable in Solaris 2.6 above. the ipaddresses
No comments:
Post a Comment