How to configure Solaris8 dual Network Card
This article mainly introduces how to configure the Solaris8 dual network card, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.
1. System environment:
1. Application purpose description:
Now all applications are servers with 192network segment. Now the purpose of configuring sun server dual network card is to access 172.172.172.170 through sun server through sun server.
Setting purpose: both 192.192.192.3 and 192.192.192.151 can ping 172.16.128.170
2. System network configuration:
The system now has two network cards: hme0 and eri0. Hme0 is intended to be equipped with 192network segment, and eri0 is configured with 172network segment.
Nic configuration:
Bash-2.03# ifconfig-a
Lo0: flags=19200849; mtu 8232 index 1 inet 127.0.0.1 netmask ff000000
Eri0: flags=19200843; mtu 1500 index 2 inet 172.172.172.33 netmask
Ffffff00 broadcast 172.16.255.255 ether 0:3:ba:29:cf:3a
Hme0: lags=19200843; mtu 1500 index 3 inet 192.192.192..2 netmask ffffff00 broadcast 192.192.192..255 ether 0:3:ba:29:cf:3a
Bash-2.03#
3. System routing table configuration:
Routing configuration:
Bash-2.03# netstat-nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
--
192.192.192..0 192.192.192..2 U 1 19 hme0
172.172.172.0 172.172.172.33 U 1 192 eri0
172.172.172.0 192.192.192..2 UG 1 0
224.0.0.0 192.192.192..2 U 1 0 hme0
Default 192.192.192..1 UG 1 16
127.0.0.1 127.0.0.1 UH 2 5382 lo0
Bash-2.03#
Description:
Default route: 192.192.192.. 1 (Internet line routing)
172.172.172.33 (Outreach 172 segment routing)
4. Solaris network changes:
Ensure that network forwarding is turned on and off by default:
# ndd-set / dev/ip ip_forwarding 1
# ndd-set / dev/ip ip_forward_directed_broadcasts 1
# ndd-set / dev/ip ip_forward_src_routed 1
5. Windows client 192.192.192.. 151 test:
The Windows system needs to add static routes:
Route add 172.172.172.0 mask 255.255.255.0 192.192.192..2
6. Test from the Windows client 192.192.192.. 151:
C:\ Documents and Settings\ guyhu >; ping 192.192.192.. 2
Reply from 192.192.192..2: bytes=32 time;ping 172.172.172.33
Reply from 172.172.172.33: bytes=32 time;ping 172.172.172.170
Reply from 172.172.172.170: bytes=32 time=5ms TTL=254
C:\ Documents and Settings\ guyhu >
7. Summary:
It is important to add "# ndd-set / dev/ip ip_forwarding 1" to the configuration process.
Thank you for reading this article carefully. I hope the article "how to configure Solaris8 dual network cards" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!