Solaris Logic to transmit traffic to physical interfaces ( eg ce0 and ce1)
Just wanted to understand what is the logic being used by Solaris(kernel) to transmit data/traffic on physical interfaces.
I have seen most of the time traffic is being sent to interface ce0 and sometime to ce1.
I have removed ip address from below command for some reason.
Code:
netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
a.b.c.d x.x.x.1 U 1 537552 ce1
a.d.e.d x.x.x.2 U 1 809673 ce0
Trying to figured out the logic/algorithm used to send traffic/data. i have gone through couple of document and understand, when system transmit a packet, it must locate the "BEST" interface over which to sent it.
but not so cleared about the algorithm or logic behind,since most of the time it uses ce0 and sometimes it use ce1 how?
Your early response will be appreciated with detailed explanation about this logic.
Thanks
Nadeem
Moderator's Comments:
edit by bakunin: Please view this code tag video for how to use code tags when posting code and data.
Routing Algorithm
The routing table entries are of three types:
+ Entries for a specific host.
+ Entries for all hosts on a specific network.
+ Wildcard entries for any destination not matched by entries of
the first two types.
To select a route for forwarding an IP packet, the network facilities
select the complete set of "matching" routing table entries from the
routing table. A routing table entry is considered a match, if the
result of the bit-wise AND operation between the netmask in the
routing entry and the IP packet's destination address equals to the
destination address in the routing entry.
The network facilities then select from the set the routing entries
that have the longest netmask. The length of a netmask is defined as
the number of contiguous 1 bits starting from the leftmost bit
position in the 32-bit netmask field. In other words, the network
facilities select the routing entry that specifies the narrowest range
of IP addresses. For example, the host route entry that has a
destination/netmask pair of (147.253.56.1, 0xffffffff), is more
specific than the network route entry that has a destination/netmask
pair of (147.253.56.0, 0xfffffe00), therefore the network facilities
select the host route entry. The default route by default has a
destination/netmask pair of (0,0). Therefore the default route matches
all destinations but it is also the least specific. The default route
will be selected only if there is not a more specific route.
There may still be multiple routing entries remaining. In that case
the IP packet is routed over the first entry displayed by netstat -r.
Such multiple routes include:
+ Two or more routes to a host via different gateways.
+ Two or more routes to a network via different gateways.
+ Two default routes.
A superuser can change entries in the table by using the route command
(see route(1M), or by information received in Internet Control Message
Protocol (ICMP) redirect messages.
There are basically two possible situations: network interfaces attached to different networks and network interfaces attached to the same network.
If the network interfaces are attached to different networks, the routing table controls what is sent using which interface. The contents of the routing table may or may not be further controlled by routing protocols (RIP, OSPF, EGP, ...). This is like it is in every IP-host.
If there are several interfaces pointing into one network, per default Solaris employs all the interfaces using a round-robin algorithm, if i remember correctly.
It is also possible to configure several interfaces into the same network to form aggregated links: etherchannels, configured for either additional bandwidth or high-availability (or both), etc..
Hi All
Kindly let me know how can I move Solaris 10 OS running update 10 on physical machine to another machine solaris zone running Solaris 10 update 11 (2 Replies)
can we configure the ce0 and ce1 interface as ce4000 and ce5000 in solaris 9
I have a server configured similar way.. I need to setup another two server in such configuration find the sample output from working server.
Please help
root@judi::/dev# ifconfig -a
lo0:... (3 Replies)
Hello,
I have a machine with Solaris 8, and it has multiple interfaces that are connected to the same network which means they all have metric 0 (1 hop) to the default gateway.
assume:
* e1000g0: 10.1.1.70
* e1000g2: 10.1.1.72
* e1000g4: 10.1.1.74
* e1000g5: 10.1.1.76
* gateway:... (11 Replies)
I have a Linux box with 3 ethernet cards:
- eth0 - connected to internet (dhcp)
- eth1 - 192.168.0.1 connected to embedded device1
- eth2 - 192.168.0.1 also connected to embedded device2
(both eth1/eth2 have to be in identical, though separate, private networks).
Also, on eth0 I have two... (1 Reply)
hi,
Can I listdown all available net interfaces on my system like SF4800 or Netra440.
I know there are 4 port physically present but I can't see or list them using either
sysdef -v
prtconf -vp
prtdiag -v
dladm
kstat
may be I'm missing switched on these or may some other command... (8 Replies)
Hi Community,
I've a problem with IPMP: I have 2 physical interfaces, 1 "physical IP" and 1 VirtualIP.
My question is:
is it possible to have IPMP configuring 2 physical interfaces with the same "physical" IP Address?
for example:
ce0 10.10.10.10
ce5 10.10.10.10
and
VIP... (5 Replies)
Hi,
I am trying to configure an ip address, netmask, and default gateway on my solaris machine. For example, in Linux I would do the following command:
#ifconfig eth0 xx.xx.xx.xx netmask 255.0.0.0
#add route or route add default xxx.xxx.xxx.xxx
In Solaris 10, I believe the commands are... (7 Replies)
i have ce0 and ce1 online, on 2 different networks. im getting a message that says one nic is trying to assume the others IP or something to thta effect.
I do ifconfig -a and i see they have the same mac.
How do i deal with this?
Solaris 9 i beleive 04/04
Thanks,
Brian (2 Replies)
Hi,
Have a solaris 9 e420, one onboard nic.
Now I added a quad nic card.
I have never had more than a single interface.
Any help on setting this new card up?
or links?
PLease? ; thanks! (2 Replies)