\documentclass[twoside]{report}
%\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{fancyhdr,url}
\usepackage[nottoc]{tocbibind}
\usepackage[a4paper,top=25mm,bottom=20mm,hmargin=15mm,bindingoffset=12mm,ignorefoot]{geometry}
%\usepackage{layout}
\usepackage{makeidx}
\ifx\pdftexversion\undefined \else
  \usepackage[pdfpagemode=None,pdfauthor={Nick Urbanik}]{hyperref}
\fi

\makeindex
\pagestyle{fancy}
\renewcommand*{\chaptermark}[1]{\markboth{\thechapter\ #1}{\thechapter\ #1}}
\renewcommand*{\sectionmark}[1]{\markright{\thesection\ #1}}
\lhead%
[\fancyplain{}{\outerHead}]%
{\fancyplain{}{\bfseries\rightmark}}

\rhead%
[\fancyplain{}{\bfseries\leftmark}]%
{\fancyplain{}{\outerHead}}
\newcommand*{\outerHead}{\textbf{\normalsize\thepage}}
\fancyfoot{}

%% \renewcommand*{\sectionmark}[1]{\markboth{\thechapter}}
%% \renewcommand*{\subsectionmark}[1]{\markright{\thesection}}

\title{Documentation for Net::SNMP and Net::LDAP}
\makeatletter
\renewcommand\tableofcontents{%
  \section*{\contentsname
    \@mkboth{%
      \contentsname}{\contentsname}}%
  \@starttoc{toc}%
}%
\makeatother

\begin{document}
%\maketitle
\begin{center}
\Huge{}\textbf{Standard Documentation for Net::SNMP, Net::LDAP and
  Perl Data Structures}
  
\end{center}
\thispagestyle{plain}
\tableofcontents
%\part{Net::SNMP}
\chapter{Net::SNMP}
\input{SNMP}
%\part{Net::LDAP}
\chapter{Net::LDAP}
\input{LDAP}
\chapter{Net::LDAP::Entry}
\input{Entry}
\chapter{Net::LDAP::Message}
\input{Message}
\chapter{Net::LDAP::Search}
\input{Search}
\chapter{Net::LDAP::Constant}
\input{Constant}
\chapter{Perl Data Stuctures Cookbook}
\input{perldsc}
\printindex
%\layout \newpage \layout
\end{document}
