{"id":203,"date":"2006-11-03T01:02:49","date_gmt":"2006-11-03T01:02:49","guid":{"rendered":"http:\/\/dhoytt.com\/mainblog\/2006\/11\/03\/adding-second-nic-on-linux-sys\/"},"modified":"2006-11-03T01:02:49","modified_gmt":"2006-11-03T01:02:49","slug":"adding-second-nic-on-linux-sys","status":"publish","type":"post","link":"http:\/\/dhoytt.com\/mainblog\/2006\/11\/adding-second-nic-on-linux-sys\/","title":{"rendered":"Adding Second NIC on Linux System points out Wiring Snafu"},"content":{"rendered":"<p>Wow!!  Tonight really emphasized why I need to take some time and just straighten out my wiring situation in my computer room. I have had so much other real life drama I cannot even discuss I have taken a patch and get to it later mentality since the other issues are far more serious but I need to get this straight soon! I have also been on vacation so I relaxed and indulged in some other hobbies as well such as sight seeing and Scuba diving.<br \/>\nOkay what happened? Here\u2019s the long and long of the story!<br \/>\nI have been testing out my new web server installing the base OS packages and performing updates. Until now I have been letting this new system I built running Fedora 6 run into whatever issues it can before I started installing and configuring my web applications.<br \/>\nWell last night before going to bed I decided to start with my web applications and installed Movabletype 3.33 on this FC6 system. I got everything up and configured up until I needed to configure my first blog and went to bed.<br \/>\nToday I explored the Sixapart Movabletype  forums, manuals  notes to see if I wanted to go to dynamic pages or PHP since a few of my other applications are PHP and I decide to stick with static pages for a few reasons.<br \/>\nI then started the process after watching some basketball and football games to start configuring my first blog and importing the data from my existing blogs over but first I wanted to test some functions. I ran into the typical permissions issues on plugins and directories. I then tried testing Stylecatcher and after running into more permission issues determined it couldn\u2019t get out of my router on port 80.<br \/>\nI decided to fix this by opening up port 80 briefly on my router that is on the same network as my current web server briefly knowing the potential issues with two systems pointing to port 80 on the same router. Well Stylecatcher worked nicely and of course my current web server stated toggling with my web server I\u2019m testing and this made my Web pages act little nuts for about 5 minutes until I discontinued pointing to the new web server with the router.<br \/>\nI guess I could have made Apache look for this system on another port other than 80 but I had a better idea that I wanted to do for other reasons. My other idea was to put another NIC in this system so it would connect to both my networks for data transfer and redundancy reasons. This way it would point to my other static ip.address and I could test at will and have minimal changes to make it my main web server when switching back to my other network.<br \/>\nI put in the additional NIC which wasn\u2019t an issue. I took the system out of the rack put the card in plugged everything back in plus I also plugged in the new NIC to my other network and this is where the weirdness started!<br \/>\nI had it pick up an ip.address via DHCP just to prove it was working and connecting to the correct network. This seemed to work ok but I should have noticed the ip.address it picked up. I then set the ip.adress statically and then rebooted and walked away for a minute.<br \/>\nWhen I came back after the reboot I checked in \/etc\/sysconfig\/devices\/ and there was a device called \u201cifcfg-eth0.bak. I looked in \u201csystem-config-network\u201d and it was listed there as well as \u201ceth0.bak\u201d along with \u201ceth0\u201d &amp; \u201cpeth0\u201d. \u201cpeth0\u201d turned out to have the settings of my original NIC along with \u201ceth0.bak\u201d with \u201ceth0\u201d having the DHCP settings of the new NIC.<br \/>\nWell I tried to change \u201ceth0\u201d back to the original settings and that didn\u2019t work. Then a new interface named \u201cpeth0.bak\u201d appeared. I cannot remember all of the various different combinations of generated NIC names that I tried and were automatically generated but there were quite a few!<br \/>\nI then decide to look at my other multi-homed Linux system that is running Fedora5 and search in Google and other search engines for what some of the variables were in the\/etc\/sysconfig\/devices\/ files. I found I had to switch \u201cPEERDNS=yes\u201d to \u201cPEERDNS=no\u201d and fix my \u201cresolv.conf\u201d to the proper DNS nameservers for my ISP.<br \/>\nI switched the new NIC back to DHCP after all of this to prove it was connecting to the correct network. I checked the systems and they resolved the other systems in my network off both interfaces properly. I then checked the DHCP ip.adress assigned to my new NIC and it had a WAN ip.adress!!<br \/>\nThe only way this could happen is if it was connecting straight to my WAN which I found out it did! I have my WAN come into a switch and then I have two routers connected to that switch and give both routers my static WAN ip.addresses and then each router has its own set of LAN addresses.<br \/>\nWhat happened during one of my testing periods when I was switching my LANs\u2019 over to Gigabit was somehow both routers went to a Gigabit switch on the respective networks shared with multi-homed systems. All my systems have static ip.addresses so this issue never showed before!<br \/>\nI had to go through my spaghetti of LAN cables and make sure that from my ISP\u2019s modem it comes to my 10\/100mb switch, to my 4 port routers and then they uplink to the 1gb hubs and then to the correct systems!<br \/>\nThis just shows what could happen when you test and don\u2019t put things back. This has had to been like this for a few months. Now my network speed should be better for the WAN &amp; LAN.  Plus it heightens the awareness that I need to put into action my game plan with my patch panels and wire harnesses that I have already purchased to get things in order!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wow!! Tonight really emphasized why I need to take some time and just straighten out my wiring situation in my computer room. I have had so much other real life drama I cannot even discuss I have taken a patch &hellip; <a href=\"http:\/\/dhoytt.com\/mainblog\/2006\/11\/adding-second-nic-on-linux-sys\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-203","post","type-post","status-publish","format-standard","hentry","category-whole-site-development"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/posts\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":0,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"wp:attachment":[{"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}