[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 489
  • Last Modified:

Tricky - Multiple DHCP & Static Interfaces on Solaris 9 OE

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
sn3ak3rp1mp
Asked:
sn3ak3rp1mp
  • 2
  • 2
1 Solution
 
sn3ak3rp1mpAuthor Commented:
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
 
mr3d1sglu3Commented:
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
 
sn3ak3rp1mpAuthor Commented:
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
 
mr3d1sglu3Commented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now