Share Internet by crossover cable

How can I share Internet connection by crossover cable?
I have Ubutnu on my laptop. On there, wireless and everything works.
However I am trying to install Arch-linux on my main (desktop) PC. And there, during basic install, it can not detect my wireless connection.
How can I share connection from my laptop with my desktop?
How can I connect to the connect on my laptop from Arch?
Last edited by kdar (2009-12-12 21:42:34)

eldragon wrote:
#!/bin/bash
# Shares internet from wlan0 through eth0
case "$1" in
start)
ifconfig eth0 up
ifconfig eth0 192.168.0.1
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
echo "set other computers in the range of"
echo "192.168.0.0 255.255.255.0"
echo "gateway 192.168.0.1"
echo "dns 192.168.10.1" #this is my router's ip, you should use yours or another dns server
stop)
echo 0 > /proc/sys/net/ipv4/ip_forward
ifconfig eth0 down
iptables --table nat --delete POSTROUTING --out-interface wlan0 -j MASQUERADE
echo "usage: $0 {start|stop}"
esac
this does just that
check if iface names and ips fit your gear, the network between both computers connected with the x-over cable must be different from your router's lan network.
Wow! I got to try this out!

Similar Messages

  • How to share internet connection from cable modem through built-in airport on imac?

    I have a cable modem with ethernet going into imac. How can I share the internet connection using the iMacs built in airport with other computers that have airport cards?
    I would love to put an ethernet router between the imac and the modem and share the internet connection using the iMacs built in airport with other computers that have airport cards as well.
    Thanks!

    The setup I had working is what I have connected to the internet now. A cable modem with one ethernet jack that plugs into the iMac. The airport from the iMac broadcast to my G5 with an airport card in it and received the internet connection. The PC received it the same way from the iMac but to a Netgear wireless adapter.
    I messed things up recently adding a wired 4 port ethernet router between the iMac and the modem, so that the modem ethernet plugged into the router, and from the router, plugged into the iMac which then could receive the internet but no more airport connections to my other machines. Haven't been able to get it working since.

  • How to Share Internet connection using cable with ...

    i am using N70, i wonder any way to share my pc broadband connection with my phone using cable. anyone know?

    nobody know ?

  • How to share an airport internet connection with XP thru a crossover cable

    Any help appreciated - My iMac is connected to the internet and home network through airport. I would like to connect an XP machine to the iMac through ethernet with a crossover cable. I'd then like to be able to share the iMac's internet and network connection with the XP and file share between computers.
    How should I configure the machines? I can get them to share files (with a manual IP address) but even though "Internet Sharing" is clicked on the iMac the XP does not connect to the internet.
    iMac is running 10.5.6
    thanks for any help!

    Yes, I do have "internet sharing" turned on. It is set to share the connection from Airport to computers using Ethernet. But there is no internet on the PC. Should they both be set for DHCP? (they are)

  • [Solved]Share internet connection

    Hi guys
    I know the title seems kinda dumb but maybe is not as easy as it seems (or im having a brain segmentation fault).
    What i want to do is this, i have a wireless router on the living room and i just bought a PC and put it in my bedroom i alredy had a netbook and i want to have internet connection in my PC i see 3 options:
    1. buy a giant ethernet cable, and pay like 25 euros, or 2 not so big cables a put a switch in the midle and pay even more
    2. buy a wireless card for my PC, pay 15 euros and it will problably not work in linux
    3. connect my netbook to the wireless then connect PC and netbook via ethernet cable (crossover right?) and share internet connection
    I rather option number 3 (in long term i will eventually go with number 2) but i dont know how to do it.
    Alredy tried windows to windows but of course Microshit didnt put Internet Connection Share on windows 7 starter version (the one theat came up with the netbook).
    I only have Windows on the PC yet cause i want internet so i can install arch so option 3 has to be linux-to-Windows(i also want internet on windows, not because i use it that much but you never know), but then when i install arch how i will i get the packges to configure the network without internet.
    Anyway i will problably try to talk to my Network Fundaments Teacher in College next week but i wanted this working this weekend so i could install arch.
    Help me please just bought the tower and i cant do shit with it (no internet no graphics card)
    Sorry for my poor english
    Last edited by archoriano (2011-09-30 09:43:31)

    alphaniner wrote:
    There's an Internet Share topic in the wiki.
    BTW, as is often the case, your English is better than a great many native speakers.
    Well that didnt work, the problem is as soon as i do "ifconfig eth0 up" computer disconnects from wireless so i lose internet conection on laptop... WAIT A MINUTE i just entered the forum to tell you this.
    Turns out it does work, somehow wicd says im not connected to wireless but i am :?
    i dont care its working its all that matters.
    Thanks

  • Is a crossover cable necessary here

    I am trying use an ethernet cable to connect my iMac G5 directly to an Acer laptop running Windows XP. Have turned on SMB file sharing on the Mac, have a file for sharing set up on the laptop. Everything I've read in the discussions and Apple's support pages seem to indicate that the Mac should auto-detect the laptop, or that I should be able to get my Mac to show up on my laptop's "My Network Places" using the connection wizard or other method, but it's just not happening. What I've read in the discussions and suppport area also indicate that a crossover cable shouldn't be necessary -- or could that not be the case? If you have any insight into why I can't get this to work, I'd be most grateful if you could share it.
    Thanks,
    Dave
    iMac G5 Mac OS X (10.3.9)

    Thanks Barbara, that helped a bit. But actually what I was really missing was a little fact that you need know: how to give an IP address to each computer when they are just two machines connected with no internet connection. In case anyone reading this needs to know, the following on how to name the ip address for the Windows machine here from http://www.smartcomputing.com/Editorial/article.asp?article=articles/2004/w1510/ 38w02/38w02.asp :
    "Click Start, My Network Places, and Local Area Connection.
    Click the Properties button on the General tab of the Local Area Connection Status window. Scroll through the list of connections, if necessary, and click Internet Protocol (TCP/IP). Then click the Properties button.
    On the next window, click the Use The Following IP Address radio button and type your IP address and subnet mask. For home or office networks, you should use internal IP addressing, in the form of 192.168.0.x (where x represents any number from 1 to 256). For example, if you use 192.168.0.1 for the first computer, use 192.168.0.2 on the second computer. For this IP range, your subnet on both PCs must be 255.255.255.0.
    Click OK and Close. "
    To give the Mac its ip address you go to the Finder under Network, and TCP/IP -- I hope Apple can put this in their support pages, would have saved me hours.

  • Does imac need a router to have two computers share internet?

    1) My old imac g5 was connected to the internet via dialup. My wife's Dell laptop connected to mine through her wireless card after I did "share internet." We did not need a separate router for either of us to use internet.
    Will my new Imac allow a similar internet sharing without a router for broadband?
    2) If I were to purchase Time Capsule, would there be any point to her buying a internal router for her laptop?

    Jonathan Kandell wrote:
    I wasn't clear, sorry; we're switching to cable or broadband.
    Usually you have to purchase a cable/dsl router with these services.
    You usually get a modem of some kind. All modern cable/dsl modems ship with a router built in; usually they contain just one incoming data port (a co-ax port for the cable modems, a RJ-11 DSL port for the DSL modems) and just one outgoing data port (almost always a standard RJ-45 Ethernet port) so that you can connect your machine. Some have a switch built into the system, and have more than one Ethernet port, usually four or five. Some have a wireless hub built into the system. Some have both the switch and the hub.
    I would recommend getting a stand-alone modem and a stand-alone router, so that if one device goes down you don't have to replace everything.
    Would the Imac connect to these wirelessly without buying additional hardware?
    Most iMacs since the G4 models ship with built-in wireless systems. If you get a router which has a wireless hub they will connect without a problem.
    And if so, could Imy wife "share" my broadband with me, without additional hardware, by using just her wireless card and my "share internet"?
    You don't need to share anything. You just need to get a router which has wireless. If you turn Internet Sharing on, you would be able to live without the router which has wireless, but you would have to keep your Mac on _and not let it sleep_ all the time so that it could share its connection. It would be simpler to just get a router which has a wireless hub built in.
    ps. I misspoke when I said "internal router". The Dell upgrade has a router option but looking closer I see it's a Netgear wireless router. No need for this if I got Time Capsule, right?
    Time Capsule has a router and wireless built in. It should work.

  • Connecting Macbook to PS3 using Crossover Cable

    I am attempting to connect my Playstation 3 to my Macbook. My Macbook is connected to a Telus internet stick which is successfully connected to the internet. I have just purchased a Nexxtech Crossover cable and have connected that between my Macbook and PS3.
    The issue is getting my PS3 connected to the internet.
    I have enabled internet sharing in system settings on the Mac.
    For the PS3, I am assuming to go: network settings, internet connection settings, custom, wired connection, auto detect, and then manual ip address. The problem I believe is the settings for IP address, subnet mask, primary and secondary DNS. It is these fields of information that I don't know how to fill.
    Much help is appreciated, I have been at this for hours.

    You don't need a crossover cable as at least the Mac is auto MDI/MDI-X.
    The PS3 should use DHCP and you might encounter problems depending on wether you have the firewall turned on or not on the Mac.

  • Attempting to transfer files via ethernet crossover cable and FTP

    So i just got my new laptop yesterday, i need to transfer my media (Movies, shows, and Music) To the new computer, i want to do this via CAT5 because it will take less time.
    What i tried to do is take the information provided on the WiKi HERE
    On the computer which has the media, i did:
    # ip link set up dev eth0
    # ip addr add 139.96.30.100/24 dev eth0 # arbitrary address
    Then on the new laptop i did:
    # ip link set up dev eth0
    # ip addr add 139.96.30.120/24 dev eth0 # arbitrary address
    This assigned the IP correctly and also connected the computers to the ethernet network via WICD, but when i attempted to log into Filezilla (With the internal IP address, the username, and password on the account of the new computer) It failed, said that it couldnt connect.
    I have httpd and sshd running on both laptops
    Anything i did wrong? I know the commands i used were from Internet Sharing but in theory those commands should still work for this.
    ~The Dyzaster

    alphaniner wrote:
    Crossover cables are only necessary when connecting two machines directly (no switch/router/etc. involved).  And even then they generally aren't necessary with Gbit interfaces. 
    connected the computers to the ethernet network via WICD
    Does this mean you have confirmed basic connectivity (ie. ping)?
    Actually i did not do a ping, i was not thinking about it at the time (Had a few drinks)
    But WICD was connected to the interface, im about to hop in the shower and once i come back out i will set it up once more and this time i will send a ping.
    Also, im only using 2 computers and am too cheep to buy a switch, plus its not needed lol. But i do have 1GB ethernet ports on both computers, so it should be faster then WiFi (Which i have gotten the wifi to run successfully, just takes too long)

  • Extending airtunes on the cheap? Can I bridge A.Express w/ Share Internet?

    My father-in-law wants to know if he can plug the router straight into his new iMac, setup share internet in system prefs, and then use the airport express to extend the coverage area just like you would if you had an airport extreme and and express.
    Links and tutorials are appreciated. Thanks!

    This should work... I'm
    1. Connect the modem to the iMac
    2. Under System Preferences, go to Sharing
    3. Check "Internet Sharing"
    4. Select Share your internet connection from Ethernet
    This is where the water gets murky since I'm on this forum with an Airport Express that's been acting up...
    5. Plug your Airport Express (AE) to where you want it, make sure its in the factory default state (you can look at up if you don't know how)
    6. Connect to it via wifi from your iMac (while its still connected via ethernet cable to your cable modem)
    7. Proceed to set it up with Airport Utility
    8. Follow directions to set it up as a network extender (you can also look around for that on Apple's Support website)

  • [Solved] Share internet from Wlan0 to other computers

    Is it possible to share internet connection from my laptop which is connected to internet through wlan0 interface (wireless) to other PCs on the LAN with my eth0 interface and lan cable?
    (Like,  Internet >> wireless Access-point >> laptop (wlan0) >> bridge to eth0 (lan card on this laptop) >> switch (through wired connection) >> other PCs)
    and where can I find how?
    Thanks
    Last edited by ottoshmidt (2012-04-23 21:26:58)

    alex_anthony wrote:
    Can also be done with networkmanager if you don't want to get your hands dirty (and if you're using it anyway).
    In summary:
    Make sure dnsmasq and iptables are installed
    Connect nm to wireless
    Connect ethernet cable between computers
    in nm-connection-editor, edit wired connection
    Under ipv4 settings, choose method, shared to other computers
    Disclaimer: This was when I was using fedora, but I have a hotspot the other way round on arch so I presume it will work.
    https://bbs.archlinux.org/viewtopic.php?id=139653
    Actually I did that one first, saw that post, but couldn't succeed and then tried https://wiki.archlinux.org/index.php/Internet_Share and succeeded. So I needed to enable ipv4  forwards and also to install iptables (which should be running as a daemon). Can't judge what was wrong in your steps for sure but at least, as I said arch wiki gives a right direction to go.
    Thanks all anyway.
    Last edited by ottoshmidt (2012-04-23 21:28:04)

  • Can't share internet (via ethernet) with 2 Mac Pros

    I've got 2 Mac Pros, but only one cable from my cable modem. (I'm aware I could get a router, but I don't want to do that yet.) So I've got ethernet going from cable modem to Mac Pro 1 (MP1) into its ethernet 1 port and it works perfectly.
    Now I'd like to use MP1's ethernet 2 port to share internet with MP2. I can't get it to work.
    Settings: on MP1, in System Prefs > Sharing > Internet Sharing, I have it enabled, and set to "Share your connection from Ethernet 1 to computers using Ethernet 2"
    On MP2, it's set to DHCP. But internet doesn't work on it.
    I can use file sharing to connect from MP1 to MP2 (or vice versa) so the ethernet cable is good. I can transfer files back and forth. But if I launch Safari on MP2, it won't pull down any web pages.
    Strange thing: on MP1, in System Prefs > Network, ethernet 1 has a green light and shows connected (that's OK). But ethernet 2 shows a yellow light, says "self-assigned IP", and configure IPv4 is set to "Using DHCP" and the IP address is 169.254.xxx.xx. I'm suspicious that this starts with 169, since I think that means it's not working. Also if I look on MP2, its IP address is 192.168.2.xx.
    Can anyone help me get internet working on MP2?

    Helpful, but still not working.
    On the first Mac Pro (MP1, the one connected to the cable modem), Ethernet 1 is connected to the cable modem, and it has an IP of 192.168.2.100, subnet mask of 255.255.255.0. It works perfectly.
    On the first Mac Pro if I go to the Ethernet 2 tab, I'm not sure what to fill in. You said not to use DHCP? So I tried Manually, giving the IP 192.168.2.102, subnet mask 255.255.255.0, and leaving router, DNS server, and search domains blank, as you suggested.
    On the second Mac Pro (the "slave"), I set it to "Using DHCP" but (mysteriously) it assigns itself an IP address of 192.168.2.3. It does grab the subnet mask and router automatically. Communication between MP1 and MP2 works (I can log into one from the other), but internet does not. It's like it's partially working. I tried DHCP with manual IP, giving it the same IP (192.168.2.3) but then it says that IP is in use.
    Did I do it right? On MP1, Ethernet 2, should I be configuring things manually? (I've tried DHCP too, and that doesn't work: MP1 shows an IP of 169.254.213.35 and MP2, set to DHCP, shows a different IP of 169.254.161.138.)

  • Connecting Internet Via data cable

    How to connect internet through Apple data cable.. ?? without WIFI

    You can't connect to the internet via a cable connected to your iPad, it won't be recognised. You can either connect to a wifi network directly on your iPad via Settings > WiFi, or do you only have a wired conncetion to your computer and not a wifi network ? If you do then you might be able to share the connection from your PC to your iPad e.g. windows ICS, or, depending the type of wired connection, you might be able to plug your cable into an AirPort Express and use that to create a wifi network

  • How to share an 802.1x cable conection by wifi?

    hi to everyone!!!
    In my student dormitory I have internet connection by cable with the protocol 802,1x and I want to share it by airport from my macbook to another mac.
    In preferences i go to Share and then to internet. Here I put share from ethernet to airport, I start the conection but nothing happens,and one message says that if I share my connection, my conectin can be affected. But my internet connection is still working but the sharing is not working.
    Anyone knows how to fix it?
    thanks in advance
    Message was edited by: nachogaliza

    thanks for your help.
    I´m sure that the othe mac has the airport turns on, but i don´t appear in the drop down.
    I have more data that can be useful for try to find the reason:
    -when i bind the cable to my macbook the internet don´t works, i have to go the icon internet connection, press in 802,1x and click connect, one message say to authenticate an clic ok, and now i have internet connection. I have to do this all the time that I turn on te computer
    -when i shared other connections, in the picture of the airport at the top of my screen, appear an arrow inside the picture, but when my 802,1x conection is running nothing appears.
    May be is a problem of the security of the network?
    thanks in advance

  • Connect C3 to PC's AdHoc to Share Internet Connect...

    Is there anybody knows how to share internet connections to C3? I've been thinking about creating an AdHoc Connection so, my C3 can access my PC's Internet connection trough WiFi.
    I use Windows XP. Please help me. Any references are welcome. Thank you.

    I DONT want to use the phone as the modem, read what i posted. I DONT want to use phone modem or GPRS, i want the phone to get internet from the pc via bluetooth or cable, but in the end from the PC, so that i can use my dialup or DSL or broadband
    I love my Nokia E50
    but I've got a new N82 in my life

Maybe you are looking for

  • G4 Will not Boot Up after Quick Time 7.1.6 Upgrade

    I upgraded the most recent Quicktime update last night and opted for System Shutdown afterward. This morning the machine will not boot up. It goes to the Apple and the swirling circle for up to a half hour - still no luck. Any ideas? iMac G4   Mac OS

  • How to design a dashboard to look like this link

    Hi all i have been trying to search for links/ papers or documents to help me to design my dashboard to look like this https://www.google.com/search?biw=1600&bih=775&q=oracle+bi+dashboard+examples+11g&bav=on.2,or.r_cp.r_qf.&bvm=bv.51495398,d.cGE,pv.x

  • Help with dreamweaver gallery - or ext. for gallery

    This link is to a template that I found that I really love how the gallery looks... but I am trying to figure out how to create this gallery with thumbnails along the top where you can click on one of the thumbnails on the left first (in the mouse ov

  • NOT WORKING MICRO!!!! HELP

    My Mirco has been dead for too long! One day, it just stopped playing, for no reason. I took it home, charged it and then tried rebooting the darned thing. Nothing. THEN I tried reformating, all I got was 'Formating...' until the battery died. I then

  • Cannot cancel iTunes U download.

    I wanted to download some iTunes U podcasts / videos on gardening. There is a series called the Backyard Gardener, I believe, from the U of Nebraska that has something like 200 segments. When I try to download a segment, iTunes attempts to download a