Re: Mounting cifs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/24/11 18:45, Kevin J. Cummings wrote:
> On 05/24/2011 06:57 PM, JD wrote:
>> I have been trying to mount on fedora a shared C drive
>> from a windows machine running winxp.
>>
>> Well, I used the mount command:
>>
>> # mount -t cifs //xp1/c -o
>> user=jd,password=mypassword,uid=myuid,gid=mygid,rw /mnt/xp1/c
>>
>> Unable to find suitable address.
> Does "xp1" have an IP address?
>
> If yes, does Fedora know about it?
xp1 and win7 are both listed in /etc/hosts.
So yes, they have IP addresses  :) :)
> Can the XP machine successfully ping either win7 or fedora?
XP1 can ping win7 and can ping router, but cannot ping fedora.
win7 cannot ping either win7 or fedora. It's firewall rules
fully allow icmp in private+public+domain mode.

Fedora has these rules pertaining to the LAN:

-A INPUT -p icmp --icmp-type 0 -s 192.168.1.0/24 -d 0/0 -m state --state 
ESTABLISHED,RELATED -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m tcp --dport 137 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m udp --dport 137 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m tcp --dport 138 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m udp --dport 138 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m tcp --dport 139 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m udp --dport 139 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m tcp --dport 445 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m udp --dport 445 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m tcp --dport 631 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m udp --dport 631 -j ACCEPT

-A OUTPUT -d 192.168.1.0/24 -j ACCEPT
-A OUTPUT -p icmp --icmp-type 8 -s 0/0 -d 0/0 -m state --state 
NEW,ESTABLISHED,RELATED -j ACCEPT

Perhaps the 2nd output rule is redundant, but I had to make sure that 
ping were  not blocked in or out.

>
> I'd start by comparing IP addresses on all three machines and checking
> to see that they all think they are on the "same" network.
Checked. IP addresses are all in sync.
>
> Second I'd check the routing tables on all 3 machines to ensure that
> they are all consistent.
Win7 routing table:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
           0.0.0.0          0.0.0.0    192.168.1.254      192.168.1.1    276
         127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
         127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
   127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
       192.168.1.0    255.255.255.0         On-link       192.168.1.1    276
       192.168.1.1  255.255.255.255         On-link       192.168.1.1    276
     192.168.1.255  255.255.255.255         On-link       192.168.1.1    276
         224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
         224.0.0.0        240.0.0.0         On-link       192.168.1.1    276
   255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
   255.255.255.255  255.255.255.255         On-link       192.168.1.1    276
===========================================================================
Persistent Routes:
   Network Address          Netmask  Gateway Address  Metric
           0.0.0.0          0.0.0.0    192.168.1.254  Default


xp1 routing table:
===========================================================================^M
===========================================================================^M
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
           0.0.0.0          0.0.0.0    192.168.1.254     
192.168.1.3       25
         127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
       192.168.1.0    255.255.255.0      192.168.1.3     
192.168.1.3       25
       192.168.1.3  255.255.255.255        127.0.0.1       
127.0.0.1       25
     192.168.1.255  255.255.255.255      192.168.1.3     
192.168.1.3       25
         224.0.0.0        240.0.0.0      192.168.1.3     
192.168.1.3       25^M
   255.255.255.255  255.255.255.255      192.168.1.3     192.168.1.3       1
   255.255.255.255  255.255.255.255      192.168.1.3               3       1
Default Gateway:     192.168.1.254
===========================================================================^M


Fedora routing table:
netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt 
Iface
0.0.0.0         192.168.1.254   0.0.0.0         UG        0 0          0 
wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 
wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 
wlan0
> Can all 3 machines get to the internet (though what I am guessing is a
> common router)
All 3 machines can indeed use the public net via same router.




-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux