?
Solved

Tricky - Multiple DHCP & Static Interfaces on Solaris 9 OE

Posted on 2003-03-09
4
Medium Priority
?
480 Views
Last Modified: 2013-12-27
Hi everyone!

I've got a bit of a stumper here; I've been scouring Google for 3 days and have not come up with a solution...

First off, I have a Sun SPARCStation 20 with the following network interfaces: le0, hme0, qfe0, qfe1, qfe2, qfe3.  My ultimate goal is to have this machine pull multiple IP addresses dynamically from my ISP (Comcast HSI Pro) and then act as a firewall / NAT / router / load balancer to my other Windows / Solaris clients and web servers.  What I'd like to configure is outlined below:

le0 - DHCP from Comcast
hme0 - DHCP from Comcast
qfe0 - DHCP from Comcast
qfe1 - Static interface, 192.168.10.1, hostname purplerouter
qfe2 - Static interface, 192.168.10.40, hostname purpledragon
qfe3 - Unassigned / Growth (there if I need it...)

So, this is a complicated little network box!  I have successfully configured and UP'ed interfaces qfe1 and qfe2, which are accessible from my LAN.  The big problem occurs when I enable DHCP on the other interfaces...  To configure the DHCP interfaces, I created the following files:

/etc/hostname.le0 (empty file)
/etc/hostname.hme0 (empty file)
/etc/hostname.qfe0 (empty file)
/etc/dhcp.le0 (only contains the entry "wait 300")
/etc/dhcp.hme0 (only contains the entry "wait 300")
/etc/dhcp.qfe0 (only contains the entry "wait 300")
/etc/hosts (has entries for "192.168.10.1 purplerouter" and "192.168.10.40 purpledragon"

After I reboot the machine with the "reboot -- -r" command, the le0 interface comes up and pulls an IP address from Comcast.  Then the hme0 interface tries to do the same, but never completes, nor does the qfe0 complete.  After waiting about 15 - 20 minutes for timeouts, I go to the /etc directory only to find that /etc/hosts has been wiped out and replaced with some stupid DHCP entry and none of the statically assigned addresses are UP.

I'm at a loss... I really want to use this box as a router / firewall because of all of the local network interfaces it has (and the box really isn't good for much else anyway).  But I'm pulling my hair out!!!

If anyone needs any additional information, please shoot me a quick note via email at pakcelica2k1@hotmail.com or post here.  I'm allocating all of my 90 points to this one...

Thanks in advance for the help!

Cheers!
Paul
0
Comment
Question by:sn3ak3rp1mp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:sn3ak3rp1mp
ID: 8100302
Update: I think the problem might be that all network interfaces in the system are being assigned the exact same ethernet address (MAC address)... see the captured banner and ifconfig output below:

SPARCstation 20 (1 X 390Z55), No Keyboard
ROM Rev. 2.15, 128 MB memory installed, Serial #3513754.
Ethernet address 8:0:20:21:2f:9b, Host ID: 72359d9a.

root@unknown:/root # ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.10.1 netmask ffffff00 broadcast 192.168.10.255
        ether 8:0:20:21:2f:9b
qfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 192.168.10.40 netmask ffffff00 broadcast 192.168.10.255
        ether 8:0:20:21:2f:9b
qfe1: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 4
        inet 68.40.241.65 netmask fffffe00 broadcast 68.40.241.255
        ether 8:0:20:21:2f:9b

Is there any way to fix this?  This would explain why the system freaks out after assigning the first IP address.  Solaris tries to pull an IP address for the next interface, and gets back the same address it assigned to the first one! (because the MAC addresses in the requests match, Comcast assumes it is the same NIC asking "What's my address?")

Cheers!
Paul
0
 

Accepted Solution

by:
mr3d1sglu3 earned 360 total points
ID: 8100410
Yes, the duplicate macs are your problem.

Use "ifconfig hme0 ether x:x:x:x:x:x" to change the mac address.

I would increment them by 1.

Hope this helps.
0
 

Author Comment

by:sn3ak3rp1mp
ID: 8100418
Thanks for the quick response... but I figured it out at the end, a "man ifconfig" told me how to change the MAC address!

Cheers!
Paul
0
 

Expert Comment

by:mr3d1sglu3
ID: 8100422
Yes, the duplicate macs are your problem.

Use "ifconfig hme0 ether x:x:x:x:x:x" to change the mac address.

I would increment them by 1.

Hope this helps.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question