Ok guys a quick newb question. I have been reading up on the Red Hat Enterprise 4 for dummies book along with installing and playing with the configurations of Cent OS 4. I have yet been able to find any information on how to find out what your IP address is. I have it set to use DHCP from our Windows server and I looked under the network card configuration settings but can not find any command or GUI place that will show your IP Address. When I go to a windows machine and try to ping the Cent box by its name it cant find the host. Now I know I can go into the DHCP server but I need to learn how to find it on the Linux box. Another question has to deal with Samba. I set up samba using the GUI interface then ran service smb start command to start up samba. The book says I should be able to browse the network with a windows machine now and find the linux box but I am unable to. Any clues why its not showing up on the network? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20060427/ca625ba8/attachment.html>
On 4/27/06, Chris Peikert <c.peikert at co.matagorda.tx.us> wrote:> > > > Ok guys a quick newb question. I have been reading up on the Red Hat > Enterprise 4 for dummies book along with installing and playing with the > configurations of Cent OS 4. I have yet been able to find any information on > how to find out what your IP address is. I have it set to use DHCP from our > Windows server and I looked under the network card configuration settings > but can not find any command or GUI place that will show your IP Address. > When I go to a windows machine and try to ping the Cent box by its name it > cant find the host. Now I know I can go into the DHCP server but I need to > learn how to find it on the Linux box. >/sbin/ifconfig ethX where X is the device number. If you're not sure you can just do /sbin/ifconfig and it'll spit up all of them.> Another question has to deal with Samba. I set up samba using the GUI > interface then ran service smb start command to start up samba. The book > says I should be able to browse the network with a windows machine now and > find the linux box but I am unable to. Any clues why its not showing up on > the network?The manual assumes that you don't have a firewall in the way. It's possible that iptables is blocking access to other machines. -- This message has been double ROT13 encoded for security. Anyone other than the intended recipient attempting to decode this message will be in violation of the DMCA
Disregard .. I took a break and went back to it just now and figured them both out. _____ From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Chris Peikert Sent: Thursday, April 27, 2006 8:17 AM To: 'CentOS mailing list' Subject: [CentOS] How to find your IP Address Ok guys a quick newb question. I have been reading up on the Red Hat Enterprise 4 for dummies book along with installing and playing with the configurations of Cent OS 4. I have yet been able to find any information on how to find out what your IP address is. I have it set to use DHCP from our Windows server and I looked under the network card configuration settings but can not find any command or GUI place that will show your IP Address. When I go to a windows machine and try to ping the Cent box by its name it cant find the host. Now I know I can go into the DHCP server but I need to learn how to find it on the Linux box. Another question has to deal with Samba. I set up samba using the GUI interface then ran service smb start command to start up samba. The book says I should be able to browse the network with a windows machine now and find the linux box but I am unable to. Any clues why its not showing up on the network? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20060427/e53e9c4d/attachment.html>
On Thu, 2006-04-27 at 08:16 -0500, Chris Peikert wrote:> Ok guys a quick newb question. I have been reading up on the Red Hat > Enterprise 4 for dummies book along with installing and playing with > the configurations of Cent OS 4. I have yet been able to find any > information on how to find out what your IP address is. I have it set > to use DHCP from our Windows server and I looked under the network > card configuration settings but can not find any command or GUI place > that will show your IP Address. When I go to a windows machine and try > to ping the Cent box by its name it cant find the host. Now I know I > can go into the DHCP server but I need to learn how to find it on the > Linux box.---- please don't send mail in html format ifconfig unless a system 'registers' dns name at time of obtaining dhcp address, you can't find it by name. ----> > > > Another question has to deal with Samba. I set up samba using the GUI > interface then ran service smb start command to start up samba. The > book says I should be able to browse the network with a windows > machine now and find the linux box but I am unable to. Any clues why > its not showing up on the network?---- use official samba documentation and you will be better off - especially if the Windows server is a domain controller and is running Active Directory. http://www.samba.org/samba/docs see 'By Example' - locate a network setup similar to yours Craig
On 4/27/06, Chris Peikert <c.peikert at co.matagorda.tx.us> wrote:> > Another question has to deal with Samba. I set up samba using the GUI > interface then ran service smb start command to start up samba. The book > says I should be able to browse the network with a windows machine now and > find the linux box but I am unable to. Any clues why its not showing up on > the network?Hi Chris, Welcone to CentOS. I think you will enjoy it. One other thing to add to Jim's response... if you want to do a quick test if iptables is the issue, you can use a command such at "service iptables stop" to shut it down (there are other ways, but this one is basically the same as the "service smb start" command you are already using). Take care, Kennedy
/sbin/ifconfig -a Samba: 1. check the logs in /var/log for helpfull data. 2. iptables may be your culprit. by default it will block incoming smb connections from your windows systems to that linux system. So you will need to modify /etc/sysconfig/iptables to allow the ports and protocols into your linux server otherwise they will just get dropped. You can probably browse from the linux box to a windows network (as iptables allows outbound connections from the system by default) but not vice-a-versa. Your next question may be how to modify IP tables to allow in smb connections. man iptables cp /etc/sysconfig/iptables /etc/sysconfig/iptables.orig vi /etc/sysconfig/iptables add some entries like this (i am unsure of the smb ranges needed so I am using 135 as an example although I think the range is 135-139 and 445) where x.x.x.x is the workstation you want to trust the connection from. Depending on what smb needs you may need udp and/or tcp entries in iptables to allow in the traffic. -A RH-Firewall-1-INPUT -s x.x.x.x -m state --state NEW -m tcp -p tcp --dport 135 -j ACCEPT -A RH-Firewall-1-INPUT -s x.x.x.x -p udp -m udp --dport 135 -j ACCEPT Issue /etc/init.d/iptables restart to make the changes active. -greg ________________________________ From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Chris Peikert Sent: Thursday, April 27, 2006 8:17 AM To: 'CentOS mailing list' Subject: [CentOS] How to find your IP Address Ok guys a quick newb question. I have been reading up on the Red Hat Enterprise 4 for dummies book along with installing and playing with the configurations of Cent OS 4. I have yet been able to find any information on how to find out what your IP address is. I have it set to use DHCP from our Windows server and I looked under the network card configuration settings but can not find any command or GUI place that will show your IP Address. When I go to a windows machine and try to ping the Cent box by its name it cant find the host. Now I know I can go into the DHCP server but I need to learn how to find it on the Linux box. Another question has to deal with Samba. I set up samba using the GUI interface then ran service smb start command to start up samba. The book says I should be able to browse the network with a windows machine now and find the linux box but I am unable to. Any clues why its not showing up on the network? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20060427/ca4f1a2f/attachment.html>