Do you have a netmask you need to enter.. my guess would be you do. If you really have an IP in the 200.x.x.x range and you have a "class c" address (where the netmask is 255.255.255.0) you should be fine as is.. but my guess is its less than 172.x more and you need to specify it in the /etc/netmasks file.. for example, my (old) ISP gave me a 64.x.x.x address, but it was a class C .. so I had to make /etc/netmasks entries so that I could find my default router. Can you ping your default router?
.. also trust me on the /etc/hosts file.. sendmail will be happier and when sendmail is happy, you will be more happy.. you can do ale.local. if you dont have a domain.
/etc/hosts: 200.0.0.2 ale.yourdomain.com. ale
/etc/netmasks: 200.0.0.0 255.255.255.0
/etc/hostname.hme0: ale
/etc/nodename: ale
/etc/defaultrouter: 200.0.0.1
/etc/resolv.conf: domain ale.com.ar nameserver a.b.c.d nameserver e.f.g.h
/etc/nsswitch.conf #(otherstuff) hosts: files dns #(otherstuff) ipnodes: files dns #(otherstuff)
Tommy McNeely Electro Domestico - Unix Administrator
On Jan 11, 2005, at 11:48 AM, sisdis wrote:
Dear people, Peter:
Finally my ISP gave me four static IP's, in order to get Internet. So I had
no to get in trouble with DHCP...but in thsi new configuration I have no
Internet too.
Assuming one of my IP is 200.0.0.2 I do this: /etc/hosts/200.0.0.2 ale (separated by a Tab) /etc/inet/hosts/200.0.0.2 ale (separated by a Tab) /etc/resolv.conf --- domain ale.com.ar nameserver x.x.x.x nameserver y.y.y.y. /etc/nsswitch.conf --- hosts: dns files /etc/defaultrouter --- 200.0.0.1 (my default gateway) Then I reboot and hme0 is Up and running....but I have no Internet.
I test in a WXP machine with the IP and MAC of my Solaris and I get connected to Internet. I have no IP Filter firewall rules...so I ask you: is my /etc/files configuration good enough ???
Thanks again to everybody !!!!
Alejandro
-----Original Message----- From: Peter Bickel <[EMAIL PROTECTED]> To: sisdis <[EMAIL PROTECTED]> Cc: Peter Bickel <[EMAIL PROTECTED]> Date: Tue, 11 Jan 2005 15:06:04 +0100 Subject: Re: OT: Configuring MAC Address manually on Solaris
Hi Alejandro
just put the dhcpagent file I sent you in /etc/default.
then unplumb your dhcp interface I assume it's hme0 if not, then change
it
to your needs
ifconfig hme0 down ifconfig hme0 unplumb
also kill the dhcpagent pkill dhcpagent
wait until the dhcpagent has released its network port with the following command.
netstat -a | grep 4999
produces the following output if dhcpagent is active
localhost.4999 *.* 0 0 49152 0 LISTEN
after you killed the dhcp agent you have to check with netstat -a | grep 4999 until you don't get any output for port 4999
now we start from scratch
ifconfig hme0 plumb
now we configure the mac address to the one your PC has. Replace nn:nn:nn:nn:nn:nn with the MAC address of your PC.
ifconfig hme0 ether nn:nn:nn:nn:nn:nn
now we try to get an IP address of the ISP this will also start the dhcpagent
ifconfig hme0 autodhcp primary
now we should have our IP address. Doublecheck with
ifconfig -a
if you got the IP address you can check what your ISP provides with
showdhcp
Good luck.
sisdis wrote:
appearsDear Peter,
Sorry again, but you are my hope !!! I continue without getting a dynamic IP, and I'm not a Unix/Solaris expert. I have no the /etc/default/dhcpagent script in my Solaris 7, so I don't know how to continue. Briefly, I start dhcpagent (I saw it with ps -ef), after that I run "ifconfig hme0 dhcp ping" and the output of "echo $?" is 0 (itInternetto be ok). Then I run "ifconfig hme0 dhcp status" and I always obtain: STATUS: selecting, SENT: 4, RECEIVED: 0, REJECTS: 0. I edit my ipfilter rules as you said (incoming udp/67 to udp/68 and icmp, and outgoing everything). When I run "snoop -d hme0" I see only incoming ARP traffic from other external machines. But there are no any outgoing traffic from my Sun !!! So I think my dhcpagent is not leaving my Sun box.
Please...I don't know what to do, and people is asking me forfromtime after time !!! Can you tell me what to do in order to use the IP and MAC Addresswhatthe Windows machine that is connected succesfully via cable modem ??? Maybe is my last chance.
Thanks Peter, I know I'm dsiturbing you, sorry.
(My MSN is [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>, if you can).
Alejandro
-----Original Message----- From: Peter Bickel <[EMAIL PROTECTED]> To: sisdis <[EMAIL PROTECTED]> Cc: [email protected] Date: Mon, 10 Jan 2005 14:57:23 +0100 Subject: Re: OT: Configuring MAC Address manually on Solaris
Hi Alejandro
basically you do it this way
dhcpif=hme0
ifconfig $dhcpif plumb ifconfig $dhcpif ether 08:00:20:12:34:56 ifconfig $dhcpif auto-dhcp primary 2>&1
I did not let Solaris configure the interface (no hostname.le0 orsoever for the wan side. First of all you hav to configure the dhcp agent,listyou would get a little bit mor then just the IP address. See my /etc/default/dhcpagent
I have my cablemodem startscript slightly modified attached. after starting the script you can test your dhcp settings with the showdhcp script to see what your ISP provides.
I hope that helps
sisdis schrieb:
Dear People, sorry for my off-topic. I'm suscribed to a SolarisAtbut itappears to be down, and you know a lot of Solaris, so here I am.mysecond,thanks to Michael Lim and Peter Bickel who helped me a lot withconnectedcablemodem DHCP/IP Filter problems.
I just want to know if I run this command as root: "arp -s <ethernet_address> pub"
it's possible to set manually a MAC Address to my Sun's NICconnectingtoInternet. I want to know this because, in case I still have problemviaDHCP (I did not receive any dinamic IP), I can set the public IPassignedsuccesfully to a Windows machine via DHCP and its correspondingWindows' MACAddress....maybe this can be one last solution.
But first, I will follow Michael and Peter advices !!!
Thanks a lot, regards !!!
Alejandro Cabrera
--
Gruss Pitsch
Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zuerich, Switzerland [EMAIL PROTECTED], Phone +41 1 268 89 89, Fax +41 1 261 27 50 http://www.ergon.ch Mobile +41 79 666 15 50 __________________________________________________________________ e r g o n smart people - smart software
--
Gruss Pitsch
Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zuerich, Switzerland [EMAIL PROTECTED], Phone +41 1 268 89 89, Fax +41 1 261 27 50 http://www.ergon.ch Mobile +41 79 666 15 50 __________________________________________________________________ e r g o n smart people - smart software
